Skip to content

Conversation

@g105b
Copy link
Member

@g105b g105b commented Apr 21, 2025

The build artifact that is passed between jobs included the .git directory, which contained a config file that stored an access token.

The token inside the file was automatically revoked as soon as the Github Action was completed, but there is a feasibility that under an attack condition, this token could be kept alive. See the documentation at https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication

To resolve any potential token leakage, the .git directory is not included within the build artifact, and on top of this, the token permissions are explicitly set in the workflow file.

@g105b g105b merged commit 205cddc into master Apr 21, 2025
51 checks passed
@g105b g105b deleted the security-git-ci branch April 21, 2025 13:17
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