Skip to content

Commit 13385f6

Browse files
authored
Use minimal permissions for CI jobs (#885)
1 parent 9cba5a5 commit 13385f6

14 files changed

+40
-0
lines changed

.github/workflows/blobby.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: blobby

.github/workflows/block-buffer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: block-buffer

.github/workflows/block-padding.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: block-padding

.github/workflows/cmov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
push:
1010
branches: master
1111

12+
permissions:
13+
contents: read
14+
1215
defaults:
1316
run:
1417
working-directory: cmov

.github/workflows/cpufeatures.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: cpufeatures

.github/workflows/dbl.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: dbl

.github/workflows/fiat-constify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
push:
1010
branches: master
1111

12+
permissions:
13+
contents: read
14+
1215
defaults:
1316
run:
1417
working-directory: fiat-constify

.github/workflows/hex-literal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: hex-literal

.github/workflows/hybrid-array.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
push:
1010
branches: master
1111

12+
permissions:
13+
contents: read
14+
1215
defaults:
1316
run:
1417
working-directory: hybrid-array

.github/workflows/inout.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: inout

.github/workflows/opaque-debug.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
push:
99
branches: master
1010

11+
permissions:
12+
contents: read
13+
1114
defaults:
1215
run:
1316
working-directory: opaque-debug

.github/workflows/security-audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Security Audit
2+
23
on:
34
pull_request:
45
paths: Cargo.lock

.github/workflows/workspace.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
paths-ignore:
1010
- README.md
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
clippy:
1417
runs-on: ubuntu-latest

.github/workflows/zeroize.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
push:
1010
branches: master
1111

12+
permissions:
13+
contents: read
14+
1215
defaults:
1316
run:
1417
working-directory: zeroize

0 commit comments

Comments
 (0)