Skip to content

Commit

Permalink
Add github token secret to upload actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mlieberman85 committed Apr 14, 2024
1 parent 0372e5e commit 00d2529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
id: run-cargo-release
run: cargo build --verbose --release && cargo test --verbose
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
run: gh release upload ${{github.event.release.tag_name}} target/release/skootrs
# TODO: Don't make this hardcoded.
Expand Down Expand Up @@ -97,6 +99,8 @@ jobs:
name: skootrs.spdx.json
path: skootrs.spdx.json
- name: Push SBOM to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
run: gh release upload ${{github.event.release.tag_name}} skootrs.spdx.json
provenance-bins:
Expand Down

0 comments on commit 00d2529

Please sign in to comment.