Skip to content

Commit

Permalink
Explicitly set GITHUB_TOKEN permissions for yocto workflow
Browse files Browse the repository at this point in the history
Changelog-entry: Explicitly set GITHUB_TOKEN permissions for yocto workflow
Signed-off-by: Ryan Cooke <[email protected]>
  • Loading branch information
rcooke-warwick committed Dec 9, 2024
1 parent 4774129 commit aaa6b88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/radxa-cm3-io-rk3566.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ on:
type: string
default: balena-staging.com

permissions:
id-token: write # This is required for requesting the JWT #https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services#requesting-the-access-token
actions: read # We are fetching workflow run results of a merge commit when workflow is triggered by new tag, to see if tests pass
pull-requests: write # Read is required to fetch the PR that merged, in order to get the test results. Write is required to create PR comments for workflow approvals.
packages: read
contents: read

jobs:
yocto:
Expand Down

0 comments on commit aaa6b88

Please sign in to comment.