Skip to content

Harden GitHub Actions workflows - #569

Merged
ylussaud merged 1 commit into
masterfrom
security/harden-workflows
Nov 17, 2026
Merged

ylussaud merged 1 commit into
masterfrom
security/harden-workflows

Conversation

@mbats

@mbats mbats commented Nov 17, 2026

Copy link
Copy Markdown
Member

Harden the GitHub Actions workflows:

  • declare minimal permissions: at the top of each workflow (contents: read by default; jobs that declare their own permissions keep them);
  • persist-credentials: false on actions/checkout, so the token is not stored in the local git config for the following steps. None of these workflows push to the repository.

Updated workflows:

  • .github/workflows/maven.yml

- Declare minimal permissions at the top of each workflow so the
  GITHUB_TOKEN only gets what it needs by default.
- Set persist-credentials: false on actions/checkout so the token is
  not left in the local git config for later steps.
@ylussaud
ylussaud merged commit c9117f6 into master Nov 17, 2026
8 checks passed
@mbats
mbats deleted the security/harden-workflows branch November 17, 2026 16:23
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