Skip to content

Commit

Permalink
GH CLI needs GITHUB_TOKEN envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Amndeep7 authored Oct 4, 2024
1 parent 604d2b5 commit 56a35a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ jobs:
- name: Install Github CLI SBOM extension
if: always()
run: gh ext install advanced-security/gh-sbom
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Run Github Advanced Security CLI SPDX
if: always()
run: gh sbom | jq '.' > /tmp/ghas_cli_sbom.spdx.json
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/upload-artifact@v4
if: always()
Expand All @@ -68,6 +72,8 @@ jobs:
- name: Run Github Advanced Security CLI CDX
if: always()
run: gh sbom -c -l | jq '.' > /tmp/ghas_cli_sbom.cdx.json
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit 56a35a2

Please sign in to comment.