Skip to content

Commit e608697

Browse files
committed
chore: add pull-requests: write to new job-level permissions
1 parent 3cd612b commit e608697

22 files changed

Lines changed: 101 additions & 0 deletions

.github/workflows/ci_codegen.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
code-generation:
1313
permissions:
1414
contents: read
15+
pull-requests: write
1516
strategy:
1617
fail-fast: false
1718
matrix:

.github/workflows/ci_duvet.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
duvet:
1414
permissions:
1515
contents: read
16+
pull-requests: write
1617
runs-on: ubuntu-22.04
1718
steps:
1819
- uses: actions/checkout@v6

.github/workflows/ci_static_analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
not-grep:
1212
permissions:
1313
contents: read
14+
pull-requests: write
1415
runs-on: ubuntu-22.04
1516
steps:
1617
- uses: actions/checkout@v6

.github/workflows/ci_todos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
findTodos:
1212
permissions:
1313
contents: read
14+
pull-requests: write
1415
runs-on: macos-14
1516
steps:
1617
- uses: actions/checkout@v6

.github/workflows/dafny-interop.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ jobs:
2424
getMplHeadVersion:
2525
permissions:
2626
contents: read
27+
pull-requests: write
2728
uses: ./.github/workflows/mpl_head_version.yml
2829
with:
2930
mpl-head: ${{inputs.mpl-commit}}
3031
dafny-interop-java:
3132
permissions:
3233
contents: read
34+
pull-requests: write
3335
needs: getMplHeadVersion
3436
uses: ./.github/workflows/dafny_interop_java.yml
3537
with:
@@ -40,6 +42,7 @@ jobs:
4042
dafny-interop-java-test-vectors:
4143
permissions:
4244
contents: read
45+
pull-requests: write
4346
needs: getMplHeadVersion
4447
uses: ./.github/workflows/dafny_interop_test_vector_java.yml
4548
with:
@@ -50,6 +53,7 @@ jobs:
5053
dafny-interop-java-examples:
5154
permissions:
5255
contents: read
56+
pull-requests: write
5357
needs: getMplHeadVersion
5458
uses: ./.github/workflows/dafny_interop_examples_java.yml
5559
with:
@@ -60,6 +64,7 @@ jobs:
6064
dafny-interop-net:
6165
permissions:
6266
contents: read
67+
pull-requests: write
6368
uses: ./.github/workflows/dafny_interop_test_net.yml
6469
with:
6570
mpl-dafny: ${{inputs.mpl-dafny}}
@@ -68,6 +73,7 @@ jobs:
6873
dafny-interop-net-test-vectors:
6974
permissions:
7075
contents: read
76+
pull-requests: write
7177
uses: ./.github/workflows/dafny_interop_test_vector_net.yml
7278
with:
7379
mpl-dafny: ${{inputs.mpl-dafny}}
@@ -76,6 +82,7 @@ jobs:
7682
dafny-interop-net-examples:
7783
permissions:
7884
contents: read
85+
pull-requests: write
7986
uses: ./.github/workflows/dafny_interop_examples_net.yml
8087
with:
8188
mpl-dafny: ${{inputs.mpl-dafny}}

.github/workflows/dafny_verify_version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
getDafnyVerifyVersion:
1515
permissions:
1616
contents: read
17+
pull-requests: write
1718
runs-on: ubuntu-22.04
1819
outputs:
1920
version: ${{ steps.read_property.outputs.dafnyVerifyVersion }}

.github/workflows/dafny_version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
getDafnyVersion:
1515
permissions:
1616
contents: read
17+
pull-requests: write
1718
runs-on: ubuntu-22.04
1819
outputs:
1920
version: ${{ steps.read_property.outputs.dafnyVersion }}

.github/workflows/daily_ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@ jobs:
1515
getVersion:
1616
permissions:
1717
contents: read
18+
pull-requests: write
1819
# Don't run the cron builds on forks
1920
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
2021
uses: ./.github/workflows/dafny_version.yml
2122
getVerifyVersion:
2223
permissions:
2324
contents: read
25+
pull-requests: write
2426
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
2527
uses: ./.github/workflows/dafny_verify_version.yml
2628
daily-ci-format:
2729
permissions:
2830
contents: read
31+
pull-requests: write
2932
needs: getVersion
3033
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
3134
uses: ./.github/workflows/library_format.yml
@@ -34,6 +37,7 @@ jobs:
3437
daily-ci-codegen:
3538
permissions:
3639
contents: read
40+
pull-requests: write
3741
needs: getVersion
3842
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
3943
uses: ./.github/workflows/ci_codegen.yml
@@ -42,6 +46,7 @@ jobs:
4246
daily-ci-verification:
4347
permissions:
4448
contents: read
49+
pull-requests: write
4550
needs: getVerifyVersion
4651
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
4752
uses: ./.github/workflows/library_dafny_verification.yml
@@ -50,62 +55,71 @@ jobs:
5055
daily-ci-test-vector-verification:
5156
permissions:
5257
contents: read
58+
pull-requests: write
5359
needs: getVerifyVersion
5460
uses: ./.github/workflows/test_vector_verification.yml
5561
with:
5662
dafny: ${{needs.getVerifyVersion.outputs.version}}
5763
daily-ci-java:
5864
permissions:
5965
contents: read
66+
pull-requests: write
6067
needs: getVersion
6168
uses: ./.github/workflows/ci_test_java.yml
6269
with:
6370
dafny: ${{needs.getVersion.outputs.version}}
6471
daily-ci-java-test-vectors:
6572
permissions:
6673
contents: read
74+
pull-requests: write
6775
needs: getVersion
6876
uses: ./.github/workflows/ci_test_vector_java.yml
6977
with:
7078
dafny: ${{needs.getVersion.outputs.version}}
7179
daily-ci-java-examples:
7280
permissions:
7381
contents: read
82+
pull-requests: write
7483
needs: getVersion
7584
uses: ./.github/workflows/ci_examples_java.yml
7685
with:
7786
dafny: ${{needs.getVersion.outputs.version}}
7887
daily-ci-net:
7988
permissions:
8089
contents: read
90+
pull-requests: write
8191
needs: getVersion
8292
uses: ./.github/workflows/ci_test_net.yml
8393
with:
8494
dafny: ${{needs.getVersion.outputs.version}}
8595
daily-ci-rust:
8696
permissions:
8797
contents: read
98+
pull-requests: write
8899
needs: getVersion
89100
uses: ./.github/workflows/library_rust_tests.yml
90101
with:
91102
dafny: ${{needs.getVersion.outputs.version}}
92103
daily-ci-net-test-vectors:
93104
permissions:
94105
contents: read
106+
pull-requests: write
95107
needs: getVersion
96108
uses: ./.github/workflows/ci_test_vector_net.yml
97109
with:
98110
dafny: ${{needs.getVersion.outputs.version}}
99111
daily-ci-net-examples:
100112
permissions:
101113
contents: read
114+
pull-requests: write
102115
needs: getVersion
103116
uses: ./.github/workflows/ci_examples_net.yml
104117
with:
105118
dafny: ${{needs.getVersion.outputs.version}}
106119
notify:
107120
permissions:
108121
contents: read
122+
pull-requests: write
109123
needs:
110124
[
111125
getVersion,

.github/workflows/go-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
get-dafny-version:
1717
permissions:
1818
contents: read
19+
pull-requests: write
1920
uses: ./.github/workflows/dafny_version.yml
2021

2122
go-release:

.github/workflows/issue-notification.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
notify-issue:
1010
permissions:
1111
contents: read
12+
pull-requests: write
1213
if: github.event_name == 'issues'
1314
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
1415
with:
@@ -19,6 +20,7 @@ jobs:
1920
notify-comment:
2021
permissions:
2122
contents: read
23+
pull-requests: write
2224
if: github.event_name == 'issue_comment' && !github.event.issue.pull_request
2325
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
2426
with:

0 commit comments

Comments
 (0)