Skip to content

Harden github actions and workflows#916

Draft
monokles wants to merge 10 commits intomasterfrom
koentange/gh-workflow
Draft

Harden github actions and workflows#916
monokles wants to merge 10 commits intomasterfrom
koentange/gh-workflow

Conversation

@monokles
Copy link
Copy Markdown

@monokles monokles commented Apr 9, 2026

This PR aims to harden Github actions and workflows against malicious actors.
It is an initial pass only, there are several items left for future PRs.

Most of the changes come from findings by either zizmor or actionlint

I have formatted the workflow files for consistency (yamlls), and fixed a typo in one of the job names as well as added a missing job name for the Docker image build.

The substantial changes in this PR (with links to the corresponding audit rules from the tools) are:

Note that this changes the default permissions in workflows to the empty set. I have tried to guess the necessary permissions for each job where applicable, but it is very possible I have missed something.
We might want to use https://github.com/GitHubSecurityLab/actions-permissions/tree/main to verify the minimal permissions for each job before this PR gets merged.

@monokles monokles requested review from Taowyoo, raoulstrackx and tvsfx and removed request for Taowyoo and raoulstrackx April 9, 2026 13:49
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