Skip to content

Commit c185ed1

Browse files
sthulbhjgraca
andauthored
fix(ci): Permissions (#782)
* fix(ci): Permissions * remove permission * I don't know * remove permissions * update permissions --------- Co-authored-by: Henrique Graca <999396+hjgraca@users.noreply.github.com>
1 parent 9fdb908 commit c185ed1

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/label_pr_on_title.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ on:
66
types:
77
- completed
88

9-
permissions:
10-
contents: read
11-
129
jobs:
1310
get_pr_details:
1411
permissions:
15-
id-token: write
1612
contents: read
13+
id-token: write
14+
pull-requests: read
1715
# Guardrails to only ever run if PR recording workflow was indeed
1816
# run in a PR event and ran successfully
1917
if: ${{ github.event.workflow_run.conclusion == 'success' }}
@@ -27,6 +25,7 @@ jobs:
2725
permissions:
2826
contents: read
2927
id-token: write
28+
pull-requests: write
3029
needs: get_pr_details
3130
runs-on: ubuntu-latest
3231
steps:

.github/workflows/on_label_added.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212
jobs:
1313
get_pr_details:
1414
permissions:
15+
contents: read
1516
id-token: write
1617
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1718
uses: ./.github/workflows/reusable_export_pr_details.yml

.github/workflows/on_opened_pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
get_pr_details:
1414
permissions:
1515
id-token: write
16+
contents: read
1617
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1718
uses: ./.github/workflows/reusable_export_pr_details.yml
1819
with:

.github/workflows/reusable_export_pr_details.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
export_pr_details:
4444
permissions:
4545
id-token: write
46+
contents: read
4647
# see https://github.com/aws-powertools/powertools-lambda-python/issues/1349
4748
if: inputs.workflow_origin == 'aws-powertools/powertools-lambda-dotnet'
4849
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)