Skip to content

Commit 3cd612b

Browse files
committed
chore: add permissions: contents: read to all workflow jobs
1 parent b42108d commit 3cd612b

22 files changed

Lines changed: 202 additions & 0 deletions

.github/workflows/ci_codegen.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010

1111
jobs:
1212
code-generation:
13+
permissions:
14+
contents: read
1315
strategy:
1416
fail-fast: false
1517
matrix:

.github/workflows/ci_duvet.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
jobs:
1313
duvet:
14+
permissions:
15+
contents: read
1416
runs-on: ubuntu-22.04
1517
steps:
1618
- uses: actions/checkout@v6

.github/workflows/ci_static_analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99

1010
jobs:
1111
not-grep:
12+
permissions:
13+
contents: read
1214
runs-on: ubuntu-22.04
1315
steps:
1416
- uses: actions/checkout@v6

.github/workflows/ci_todos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99

1010
jobs:
1111
findTodos:
12+
permissions:
13+
contents: read
1214
runs-on: macos-14
1315
steps:
1416
- uses: actions/checkout@v6

.github/workflows/dafny-interop.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ on:
2222

2323
jobs:
2424
getMplHeadVersion:
25+
permissions:
26+
contents: read
2527
uses: ./.github/workflows/mpl_head_version.yml
2628
with:
2729
mpl-head: ${{inputs.mpl-commit}}
2830
dafny-interop-java:
31+
permissions:
32+
contents: read
2933
needs: getMplHeadVersion
3034
uses: ./.github/workflows/dafny_interop_java.yml
3135
with:
@@ -34,6 +38,8 @@ jobs:
3438
mpl-version: ${{needs.getMplHeadVersion.outputs.version}}
3539
dbesdk-dafny: ${{inputs.dbesdk-dafny}}
3640
dafny-interop-java-test-vectors:
41+
permissions:
42+
contents: read
3743
needs: getMplHeadVersion
3844
uses: ./.github/workflows/dafny_interop_test_vector_java.yml
3945
with:
@@ -42,6 +48,8 @@ jobs:
4248
mpl-version: ${{needs.getMplHeadVersion.outputs.version}}
4349
dbesdk-dafny: ${{inputs.dbesdk-dafny}}
4450
dafny-interop-java-examples:
51+
permissions:
52+
contents: read
4553
needs: getMplHeadVersion
4654
uses: ./.github/workflows/dafny_interop_examples_java.yml
4755
with:
@@ -50,18 +58,24 @@ jobs:
5058
mpl-version: ${{needs.getMplHeadVersion.outputs.version}}
5159
dbesdk-dafny: ${{inputs.dbesdk-dafny}}
5260
dafny-interop-net:
61+
permissions:
62+
contents: read
5363
uses: ./.github/workflows/dafny_interop_test_net.yml
5464
with:
5565
mpl-dafny: ${{inputs.mpl-dafny}}
5666
mpl-commit: ${{inputs.mpl-commit}}
5767
dbesdk-dafny: ${{inputs.dbesdk-dafny}}
5868
dafny-interop-net-test-vectors:
69+
permissions:
70+
contents: read
5971
uses: ./.github/workflows/dafny_interop_test_vector_net.yml
6072
with:
6173
mpl-dafny: ${{inputs.mpl-dafny}}
6274
mpl-commit: ${{inputs.mpl-commit}}
6375
dbesdk-dafny: ${{inputs.dbesdk-dafny}}
6476
dafny-interop-net-examples:
77+
permissions:
78+
contents: read
6579
uses: ./.github/workflows/dafny_interop_examples_net.yml
6680
with:
6781
mpl-dafny: ${{inputs.mpl-dafny}}

.github/workflows/dafny_verify_version.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212

1313
jobs:
1414
getDafnyVerifyVersion:
15+
permissions:
16+
contents: read
1517
runs-on: ubuntu-22.04
1618
outputs:
1719
version: ${{ steps.read_property.outputs.dafnyVerifyVersion }}

.github/workflows/dafny_version.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212

1313
jobs:
1414
getDafnyVersion:
15+
permissions:
16+
contents: read
1517
runs-on: ubuntu-22.04
1618
outputs:
1719
version: ${{ steps.read_property.outputs.dafnyVersion }}

.github/workflows/daily_ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,71 +13,99 @@ on:
1313

1414
jobs:
1515
getVersion:
16+
permissions:
17+
contents: read
1618
# Don't run the cron builds on forks
1719
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
1820
uses: ./.github/workflows/dafny_version.yml
1921
getVerifyVersion:
22+
permissions:
23+
contents: read
2024
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
2125
uses: ./.github/workflows/dafny_verify_version.yml
2226
daily-ci-format:
27+
permissions:
28+
contents: read
2329
needs: getVersion
2430
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
2531
uses: ./.github/workflows/library_format.yml
2632
with:
2733
dafny: ${{needs.getVersion.outputs.version}}
2834
daily-ci-codegen:
35+
permissions:
36+
contents: read
2937
needs: getVersion
3038
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
3139
uses: ./.github/workflows/ci_codegen.yml
3240
with:
3341
dafny: ${{needs.getVersion.outputs.version}}
3442
daily-ci-verification:
43+
permissions:
44+
contents: read
3545
needs: getVerifyVersion
3646
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
3747
uses: ./.github/workflows/library_dafny_verification.yml
3848
with:
3949
dafny: ${{needs.getVerifyVersion.outputs.version}}
4050
daily-ci-test-vector-verification:
51+
permissions:
52+
contents: read
4153
needs: getVerifyVersion
4254
uses: ./.github/workflows/test_vector_verification.yml
4355
with:
4456
dafny: ${{needs.getVerifyVersion.outputs.version}}
4557
daily-ci-java:
58+
permissions:
59+
contents: read
4660
needs: getVersion
4761
uses: ./.github/workflows/ci_test_java.yml
4862
with:
4963
dafny: ${{needs.getVersion.outputs.version}}
5064
daily-ci-java-test-vectors:
65+
permissions:
66+
contents: read
5167
needs: getVersion
5268
uses: ./.github/workflows/ci_test_vector_java.yml
5369
with:
5470
dafny: ${{needs.getVersion.outputs.version}}
5571
daily-ci-java-examples:
72+
permissions:
73+
contents: read
5674
needs: getVersion
5775
uses: ./.github/workflows/ci_examples_java.yml
5876
with:
5977
dafny: ${{needs.getVersion.outputs.version}}
6078
daily-ci-net:
79+
permissions:
80+
contents: read
6181
needs: getVersion
6282
uses: ./.github/workflows/ci_test_net.yml
6383
with:
6484
dafny: ${{needs.getVersion.outputs.version}}
6585
daily-ci-rust:
86+
permissions:
87+
contents: read
6688
needs: getVersion
6789
uses: ./.github/workflows/library_rust_tests.yml
6890
with:
6991
dafny: ${{needs.getVersion.outputs.version}}
7092
daily-ci-net-test-vectors:
93+
permissions:
94+
contents: read
7195
needs: getVersion
7296
uses: ./.github/workflows/ci_test_vector_net.yml
7397
with:
7498
dafny: ${{needs.getVersion.outputs.version}}
7599
daily-ci-net-examples:
100+
permissions:
101+
contents: read
76102
needs: getVersion
77103
uses: ./.github/workflows/ci_examples_net.yml
78104
with:
79105
dafny: ${{needs.getVersion.outputs.version}}
80106
notify:
107+
permissions:
108+
contents: read
81109
needs:
82110
[
83111
getVersion,

.github/workflows/go-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414

1515
jobs:
1616
get-dafny-version:
17+
permissions:
18+
contents: read
1719
uses: ./.github/workflows/dafny_version.yml
1820

1921
go-release:

.github/workflows/issue-notification.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
notify-issue:
10+
permissions:
11+
contents: read
1012
if: github.event_name == 'issues'
1113
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
1214
with:
@@ -15,6 +17,8 @@ jobs:
1517
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_GHI }}
1618

1719
notify-comment:
20+
permissions:
21+
contents: read
1822
if: github.event_name == 'issue_comment' && !github.event.issue.pull_request
1923
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
2024
with:

0 commit comments

Comments
 (0)