Skip to content

Commit

Permalink
ci: fix upload to dtrack (SBOM) (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaker-devolutions authored Nov 25, 2022
1 parent 9597630 commit 3c04388
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ jobs:
path: devolutions-gateway/bom.xml

- name: Upload SBOM to Dependency-Track
uses: ./.github/workflows/dtrack-upload-sbom@master
uses: ./.github/workflows/dtrack-upload-sbom
with:
serverhostname: 'dtrack-api.devolutions.com'
apikey: ${{ secrets.DTRACK_AUTOMATION_API_KEY }}
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,37 +340,6 @@ jobs:
}
}
Upload-SBOM:
name: Upload SBOM
runs-on: ubuntu-latest
needs: preflight
if: needs.preflight.outputs.skip-publishing == 'false' || github.event.inputs.dry-run == 'false'

steps:
## Download back the artifacts produced by the other jobs

- name: Download artifacts (action)
if: needs.preflight.outputs.dl-strategy == 'action'
uses: actions/download-artifact@v3
with:
name: bom.xml

- name: Download artifacts (cli)
if: needs.preflight.outputs.dl-strategy == 'cli'
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.DEVOLUTIONSBOT_TOKEN }}
run: gh run download ${{ needs.preflight.outputs.run }} -n bom.xml --repo $Env:GITHUB_REPOSITORY

- name: Upload SBOM
uses: devolutions/actions/dtrack-upload-sbom@master
with:
serverhostname: dtrack-api.devolutions.com
apikey: ${{ secrets.DTRACK_AUTOMATION_API_KEY }}
projectname: devolutions-gateway
projectversion: ${{ needs.preflight.outputs.version }}
autocreate: 'true'

onedrive:
name: OneDrive
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 3c04388

Please sign in to comment.