Skip to content

Commit

Permalink
Use minimal permissions for CI jobs (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Apr 3, 2023
1 parent 9cba5a5 commit 13385f6
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/blobby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: blobby
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/block-buffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: block-buffer
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/block-padding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: block-padding
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cmov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: cmov
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cpufeatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: cpufeatures
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dbl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: dbl
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/fiat-constify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: fiat-constify
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/hex-literal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: hex-literal
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/hybrid-array.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: hybrid-array
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/inout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: inout
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/opaque-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: opaque-debug
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Security Audit

on:
pull_request:
paths: Cargo.lock
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
paths-ignore:
- README.md

permissions:
contents: read

jobs:
clippy:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/zeroize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
push:
branches: master

permissions:
contents: read

defaults:
run:
working-directory: zeroize
Expand Down

0 comments on commit 13385f6

Please sign in to comment.