Skip to content

Commit e5f82df

Browse files
security: narrow the release token to the job that needs it (#34)
The workflow held contents: write for its whole run. It now runs with contents: read and grants write only to the job that publishes the release. OpenSSF Scorecard scores Token-Permissions 0 out of 10 whenever any workflow carries a top-level write permission, however little of the run needs it. This one line was what held the check at zero. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent b3b9a3f commit e5f82df

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ on:
1212
default: "0.0.0-dev"
1313

1414
permissions:
15-
contents: write
15+
contents: read
1616

1717
jobs:
1818
build-installer:
1919
name: Build Windows Installer
2020
runs-on: windows-latest
21+
permissions:
22+
# Nur was ueber das workflow-weite contents: read hinausgeht.
23+
# Read-Rechte hier zu wiederholen ist das, was OpenSSF Scorecard
24+
# als zu weite Token-Berechtigung bemaengelt.
25+
contents: write
2126
steps:
2227
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2328

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to NetDashboard will be documented here.
44
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## [1.0.5] - 2026-07-29
7+
8+
### Security
9+
10+
- The release workflow no longer grants `contents: write` for its whole run. The permission moves to the one job that publishes the release, and everything else runs with `contents: read`. OpenSSF Scorecard scores the Token-Permissions check 0 out of 10 whenever any workflow holds a top-level write permission, regardless of how little of the run needs it, so this single line was what held the check at zero.
11+
12+
---
13+
614
## [1.0.4] - 2026-07-29
715

816
### Changed

NetDashboard.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ImplicitUsings>enable</ImplicitUsings>
99
<UseWPF>true</UseWPF>
1010
<ApplicationIcon>RayStudio.ico</ApplicationIcon>
11-
<Version>1.0.4</Version>
11+
<Version>1.0.5</Version>
1212
<EnableWindowsTargeting>true</EnableWindowsTargeting>
1313
</PropertyGroup>
1414

0 commit comments

Comments
 (0)