Skip to content

Commit

Permalink
Fix GitHub Releases example in README.md (#346)
Browse files Browse the repository at this point in the history
- subcommand: otherwise you will get "Error: unknown flag: --tag-name"
- permissions: otherwise 403
  "Error: failed to upload provenance to release: POST
  https://uploads.github.com/repos/claudioandre-br/john-packages/releases/152590477/assets?name=provenance.json:
  403 Resource not accessible by integration []"

Signed-off-by: Claudio André <[email protected]>
  • Loading branch information
claudioandre-br authored Apr 25, 2024
1 parent 2097591 commit fc183a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,16 @@ The easiest way to use this action is to add the following into your workflow fi
name: provenance
needs: [release]
runs-on: ubuntu-20.04
permissions:
# required to update the release.
contents: write

steps:
- name: Generate provenance for Release
uses: philips-labs/[email protected]
with:
command: generate
subcommand: files
subcommand: github-release
arguments: --artifact-path release-assets --output-path 'provenance.json' --tag-name ${{ github.ref_name }}
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit fc183a6

Please sign in to comment.