Skip to content

Commit 5ead781

Browse files
authored
security: add permissions block to workflows (#1442)
1 parent cb57272 commit 5ead781

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/addToProject.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
env:
99
MY_GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
assign_one_project:
1316
runs-on: ubuntu-latest

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
pull_request_target:
66
types: [opened]
77

8+
permissions:
9+
contents: read
10+
issues: write
11+
pull-requests: write
12+
813
jobs:
914
triage:
1015
runs-on: ubuntu-latest

.github/workflows/run-matrix.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
required: true
1616
type: string
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
create-test-matrix:
2023
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)