Skip to content

Commit 2e5f079

Browse files
Copilotrajbos
andcommitted
Add top-level permissions to workflow files for security best practices
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent 440798e commit 2e5f079

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main, develop ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
default: 'true'
1313
type: boolean
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
release:
1720
permissions:

.github/workflows/sync-release-notes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
release:
66
types: [published, edited] # Automatic trigger when releases are published or edited
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
sync-release-notes:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)