Skip to content

Commit

Permalink
Add id-token permission to build-n-release job
Browse files Browse the repository at this point in the history
sigstore needs the id-token access, otherwise it tries to use a browser
code to authenticate, per
https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services#adding-permissions-settings

Signed-off-by: Ben Cotton <ben@kusari.dev>
  • Loading branch information
funnelfiasco committed Nov 25, 2024
1 parent 02f0d12 commit 443cff8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
BUILDPACK_SPDX_SBOM: "launch/paketo-buildpacks_yarn-install/launch-modules/sbom.spdx.json"
permissions:
packages: write # To publish container images to GHCR
id-toke: write # For sigstore to use our OIDC token for signing
steps:
- name: Checkout code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
Expand Down

0 comments on commit 443cff8

Please sign in to comment.