Skip to content

Harden GitHub Actions workflows against token disclosure#1

Merged
SRWieZ merged 1 commit into
mainfrom
harden-workflows
May 18, 2026
Merged

Harden GitHub Actions workflows against token disclosure#1
SRWieZ merged 1 commit into
mainfrom
harden-workflows

Conversation

@SRWieZ
Copy link
Copy Markdown
Member

@SRWieZ SRWieZ commented May 18, 2026

Hardens CI in response to Composer CVE-2026-45793. Same pattern as knotsphp/publicip#6.

  • Pin every action to a commit SHA (with version comment)
  • Top-level permissions: contents: read on both workflows
  • persist-credentials: false on every actions/checkout
  • Switch pint to --test mode; drop git-auto-commit-action dependency
  • Add .github/dependabot.yml (monthly, grouped, labelled)
  • Add .github/CODEOWNERS

- Pin every action to a commit SHA (with version comment)
- Top-level permissions: contents: read on both workflows
- persist-credentials: false on every actions/checkout
- Switch pint to --test mode; drop git-auto-commit-action dependency
- Add .github/dependabot.yml (monthly, grouped, labelled)
- Add .github/CODEOWNERS so future .github/ changes need review

Same pattern as knotsphp/publicip#6.
@SRWieZ SRWieZ merged commit 1564586 into main May 18, 2026
8 of 13 checks passed
@SRWieZ SRWieZ mentioned this pull request May 18, 2026
2 tasks
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