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 <ryan@balena.io>
  • Loading branch information
rcooke-warwick committed Nov 29, 2024
1 parent 6dee512 commit 6bdab33
Show file tree
Hide file tree
Showing 19 changed files with 115 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/astro-tx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/blackboard-tx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
7 changes: 7 additions & 0 deletions .github/workflows/cnx100-xavier-nx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ on:
type: string
default: ''

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:
name: Yocto
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/floyd-nano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jetson-nano-2gb-devkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jetson-nano-emmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jetson-nano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jetson-tx1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jetson-tx2-nx-devkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jetson-tx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jetson-xavier-nx-devkit-seeed-2mic-hat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/jn30b-nano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/n310-tx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/n510-tx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/orbitty-tx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/photon-nano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/photon-tx2-nx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/photon-xavier-nx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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
6 changes: 6 additions & 0 deletions .github/workflows/spacely-tx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
type: string
default: ''

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 6bdab33

Please sign in to comment.