Skip to content

Commit dcdf508

Browse files
authored
fix: ci permissions block for release-please (runfinch#1587)
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 358e64a commit dcdf508

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/release-automation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# This is required for configure-aws-credentials to request an OIDC JWT ID token to access AWS resources later on.
6363
# More info: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
6464
id-token: write
65-
contents: read # this is required for actions/checkout
65+
contents: write # this is required for actions/checkout
6666
secrets: inherit
6767
with:
6868
ref_name: ${{ needs.get-latest-tag.outputs.tag }}

.github/workflows/release-please.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
name: release-please
77

88
permissions:
9-
contents: read
9+
contents: write # Required for trigger-release-automation job
1010
pull-requests: write
1111

1212
jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
1515
permissions:
16-
contents: read
16+
contents: write
1717
pull-requests: write
1818
timeout-minutes: 2
1919
outputs:
@@ -25,4 +25,7 @@ jobs:
2525
name: Trigger release-automation.yaml if PR is merged
2626
needs: [release-please]
2727
if: ${{ needs.release-please.outputs.release_created == 'true' }}
28+
permissions:
29+
contents: write # Required for uploading release assets
30+
id-token: write # Required for AWS OIDC authentication
2831
uses: ./.github/workflows/release-automation.yaml

0 commit comments

Comments
 (0)