-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Codeql is updated to include go 1.21.X so it works right. This is due to changes in the go.mod parsing in go > 1.21. By default Codeql has Go 1.20 but I was informed that is just by coincidence and the version of Go included should not be relied on. Releases is updated with correct token permissions where needed. Releases still doesn't work 100% yet and is being worked on.
- Loading branch information
1 parent
a6c53a7
commit ffb13ae
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ on: | |
|
||
permissions: | ||
actions: read # for detecting the Github Actions environment. | ||
contents: read | ||
|
||
jobs: | ||
goreleaser: | ||
|
@@ -138,6 +139,11 @@ jobs: | |
IMAGE_URI_DIGEST: ${{ needs.goreleaser.outputs.image }}@${{ needs.goreleaser.outputs.digest }} | ||
|
||
provenance-bins: | ||
permissions: | ||
id-token: write | ||
actions: read | ||
contents: write | ||
packages: write | ||
name: generate provenance for binaries | ||
needs: [goreleaser] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
@@ -148,6 +154,11 @@ jobs: | |
|
||
provenance-container: | ||
name: generate provenance for container | ||
permissions: | ||
id-token: write | ||
actions: read | ||
contents: write | ||
packages: write | ||
needs: [goreleaser] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] # must use semver here | ||
|