Skip to content

security: harden checkout action#689

Open
m1rm wants to merge 1 commit into
archlinux:masterfrom
m1rm:security/harden-github-actions
Open

security: harden checkout action#689
m1rm wants to merge 1 commit into
archlinux:masterfrom
m1rm:security/harden-github-actions

Conversation

@m1rm
Copy link
Copy Markdown
Contributor

@m1rm m1rm commented May 20, 2026

Latest issues with security regarding GitHub Actions workflows are not new. This PR hardens the checkout action by preventing credentials to be persisted on disk.

Motivation/What it does: it prevents the GITHUB_TOKEN from being stored in the runner's .git/config, reducing the risk of token exposure during the build.

Source: https://phpunit.expert/articles/hardening-github-actions-workflows.html

@m1rm
Copy link
Copy Markdown
Contributor Author

m1rm commented May 20, 2026

if the question arirses, why not do more that is (for example) mentioned in the article: I wanted to keep it simple. For example pinning the actions to commit hashes is as simple as an improvement but comes with the cost of additional maintenance load. I am happy include that, too, just let me know.

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