Skip to content

Commit 07ebf7e

Browse files
AdnaneKhanManciukic
authored andcommitted
Scope down GitHub Token permissions
This change scopes down GitHub Token permissions to least necessary for GitHub Actions workflows. Signed-off-by: Adnan Khan <[email protected]>
1 parent b5265f3 commit 07ebf7e

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

.github/workflows/deny_dirty_cargo_locks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Check no Cargo.lock files are dirty
22

33
on: pull_request
44

5+
6+
permissions:
7+
contents: read
8+
59
jobs:
610
no_dirty_cargo_locks_check:
711
runs-on: ubuntu-latest

.github/workflows/dependency_modification_check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Check no dependencies were modified
22

33
on: pull_request
44

5+
6+
permissions:
7+
contents: read
8+
59
jobs:
610
dependency_changed_check:
711
runs-on: ubuntu-latest

.github/workflows/send_pr_notification.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request_target:
55
types: [labeled]
66

7+
8+
permissions: {}
9+
710
jobs:
811
send_notification:
912
runs-on: ubuntu-latest

.github/workflows/send_release_notification.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
8+
permissions: {}
9+
710
jobs:
811
send_notification:
912
runs-on: ubuntu-latest

.github/workflows/trigger_ab_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- firecracker-v*
66
- feature/*
77

8+
9+
permissions:
10+
contents: read
11+
812
jobs:
913
trigger_ab_test:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)