Skip to content

Commit a8df2e1

Browse files
committed
6707 - Add least-privilege permissions block to PR-triggered workflows
1 parent bdb6035 commit a8df2e1

84 files changed

Lines changed: 252 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ada.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types: [opened, synchronize, reopened, ready_for_review]
88
branches: [ '*' ]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215

.github/workflows/aesgcm-siv.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
18+
19+
permissions:
20+
contents: read
1821
# END OF COMMON SECTION
1922

2023
jobs:

.github/workflows/arduino.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ on:
7272
concurrency:
7373
# Same branch push cancels other jobs. Other PR branches untouched
7474

75+
permissions:
76+
contents: read
77+
7578
group: ${{ github.workflow }}-${{ github.ref_name }}
7679
cancel-in-progress: true
7780

.github/workflows/async-examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
async_examples:
1619
if: ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}

.github/workflows/async.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
1818
cancel-in-progress: true
19+
20+
permissions:
21+
contents: read
1922
# END OF COMMON SECTION
2023

2124
jobs:

.github/workflows/bind.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
1417
# END OF COMMON SECTION
1518

1619
jobs:

.github/workflows/check-cert-chains.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
1417
# END OF COMMON SECTION
1518

1619
jobs:

.github/workflows/cmake-autoconf.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types: [opened, synchronize, reopened, ready_for_review]
88
branches: [ '*' ]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
if: ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}

.github/workflows/cmake.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types: [opened, synchronize, reopened, ready_for_review]
88
branches: [ '*' ]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
if: ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}

.github/workflows/codespell.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
1316
# END OF COMMON SECTION
1417

1518
jobs:

0 commit comments

Comments
 (0)