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 force-pushed the harden-workflows branch from 4f8dfa8 to d86c75d Compare May 18, 2026 20:22
@SRWieZ SRWieZ merged commit 939a735 into main May 18, 2026
17 of 26 checks passed
SRWieZ added a commit that referenced this pull request May 18, 2026
The Linting workflow was switched from auto-fix mode to --test in #1,
which surfaces pre-existing style issues that the old workflow silently
fixed and force-committed. Replace fully-qualified class references with
imports in cli/flushdns.php and tests/Unit/ArchTest.php so pint passes.
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