Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkg/cmd/extension/ext_tmpls/goBinWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ on:
- "v*"
permissions:
contents: write
id-token: write
attestations: write
Comment on lines +8 to +9
Copy link
Member Author

@BagToad BagToad Aug 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After testing, I found these permissions were required for the workflow to run successfully and create attestations.


jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cli/gh-extension-precompile@v1
with:
generate_attestations: true
go_version_file: go.mod
2 changes: 1 addition & 1 deletion pkg/cmd/extension/ext_tmpls/otherBinWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cli/gh-extension-precompile@v1
with:
build_script_override: "script/build.sh"