Skip to content

Harden GitHub Actions workflows#173

Draft
knuton wants to merge 5 commits into
dividat:mainfrom
knuton:harden-gh-actions
Draft

Harden GitHub Actions workflows#173
knuton wants to merge 5 commits into
dividat:mainfrom
knuton:harden-gh-actions

Conversation

@knuton
Copy link
Copy Markdown
Member

@knuton knuton commented May 20, 2026

Further hardens workflows, based on zizmor analysis.

Checklist

  • Changelog updated
  • Code documented

knuton added 5 commits May 20, 2026 22:00
Particularly for building release binaries, it may be worth skipping
caches and build everything from scratch.
In the release workflow, only the step creating the release needs
content write permissions.

The lowest level at which permissions can be set is per job, not per
step.
Flagged by zizmor, vulnerable to including maliciously crafted branch
names in commands otherwise.
@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@knuton knuton requested a review from yfyf May 20, 2026 20:45
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.

2 participants