Skip to content

Do not persist credentials in GitHub Actions checkouts - #7

Merged
mbats merged 1 commit into
masterfrom
security/persist-credentials
Nov 18, 2026
Merged

mbats merged 1 commit into
masterfrom
security/persist-credentials

Conversation

@mbats

@mbats mbats commented Nov 17, 2026

Copy link
Copy Markdown
Member

Harden the GitHub Actions workflows:

  • persist-credentials: false on actions/checkout, so the token is not stored in the local git config for the following steps (neither workflow pushes to the repository);
  • minimal permissions: (contents: read) at the top of the continuous integration workflow.

Updated workflows:

  • .github/workflows/continuous_integration.yml
  • .github/workflows/npm-publish.yml

Set persist-credentials: false on actions/checkout so the token is not
left in the local git config, and declare minimal permissions where
they were missing.
@mbats
mbats merged commit 067adf9 into master Nov 18, 2026
1 check passed
@mbats
mbats deleted the security/persist-credentials branch November 18, 2026 09:04
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