Skip to content

Commit 2058e5a

Browse files
Copilotnielsdrost7
andcommitted
Add explicit permissions to workflow for security (CodeQL fix)
Co-authored-by: nielsdrost7 <47660417+nielsdrost7@users.noreply.github.com>
1 parent 5b60631 commit 2058e5a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ This directory contains GitHub Actions workflows for automated CI/CD tasks.
1919
6. **Creates release archive** - Packages everything into a timestamped ZIP file
2020
7. **Uploads artifact** - Makes the release available for download (90-day retention)
2121

22+
**Security:**
23+
24+
The workflow uses minimal permissions:
25+
- `contents: read` - Read access to repository contents
26+
- `actions: write` - Write access to upload workflow artifacts
27+
2228
**Required Secrets:**
2329

2430
Before using this workflow, you need to configure these GitHub secrets:

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
name: Build and Package Production Release
1111
runs-on: ubuntu-latest
1212

13+
permissions:
14+
contents: read
15+
actions: write # Required for uploading artifacts
16+
1317
steps:
1418
- name: Checkout repository
1519
uses: actions/checkout@v4

0 commit comments

Comments
 (0)