Skip to content

Potential fix for code scanning alert no. 3: Workflow does not contain permissions - #84

Merged
irino merged 1 commit into
masterfrom
alert-autofix-3
Nov 9, 2026
Merged

irino merged 1 commit into
masterfrom
alert-autofix-3

Conversation

@irino

@irino irino commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/irino/softflowd/security/code-scanning/3

Add an explicit top-level permissions block to the workflow so all jobs default to least privilege (contents: read). Keep the existing per-job override in release (contents: write) because that job needs to create a GitHub release. This is the minimal, functionality-preserving fix: dist and rpm get restricted read access, while release retains write permission.

Change location:

  • File: .github/workflows/release.yml
  • Region: after the on: trigger block and before jobs:
  • Add:
    permissions:
      contents: read

No imports/dependencies/method changes are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@irino
irino marked this pull request as ready for review November 9, 2026 13:03
@irino
irino merged commit 44a4b1d into master Nov 9, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant