Skip to content

Commit 2f4bf9c

Browse files
committed
ci: explicit permission in GH actions
1 parent 1855dc0 commit 2f4bf9c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: .github/workflows/audit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
paths:
88
- "**/Cargo.toml"
99
- "**/Cargo.lock"
10+
11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
security_audit:
1216
runs-on: ubuntu-latest

Diff for: .github/workflows/general.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on: [push, pull_request]
66
env:
77
CARGO_TERM_COLOR: always
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
fmt:
1114
name: Rustfmt

0 commit comments

Comments
 (0)