Skip to content

Commit e727cd6

Browse files
committed
Simplify workflow permissions to contents:read only
Based on review, all workflows can use minimal contents:read permission. This provides the most restrictive security posture while still allowing workflows to function properly.
1 parent 3f8df2c commit e727cd6

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
schedule:
99
- cron: '0 13 * * 4'
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
CodeQL-Build:
1316

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Go
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69

710
build:

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: golangci-lint
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
golangci:
710
name: lint

0 commit comments

Comments
 (0)