Skip to content

Commit f2348ed

Browse files
brabojclaude
andcommitted
fix: add explicit permissions to workflows
Resolves CodeQL alert: workflows without explicit permissions run with broad defaults. Restrict to contents:read. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e5a1675 commit f2348ed

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

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

.github/workflows/lighthouse.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

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

0 commit comments

Comments
 (0)