Skip to content

fix: harden GitHub Actions workflows#46

Merged
fzipi merged 1 commit into
mainfrom
fix/harden-gha-workflows
Mar 16, 2026
Merged

fix: harden GitHub Actions workflows#46
fzipi merged 1 commit into
mainfrom
fix/harden-gha-workflows

Conversation

@fzipi
Copy link
Copy Markdown
Member

@fzipi fzipi commented Mar 16, 2026

what

  • pin fernandrone/linelint to commit SHA instead of mutable master branch
  • add explicit permissions: contents: read to reusable lint and integration workflows

why

  • fernandrone/linelint@master tracks a mutable branch — a compromised upstream could inject arbitrary code that runs in every plugin repo that uses this reusable workflow (~20 repos)
  • this repo is the upstream reusable workflow for most CRS plugins, so hardening it has org-wide impact
  • explicit permissions follow the principle of least privilege

refs

- pin fernandrone/linelint to commit SHA instead of mutable master branch
- add explicit minimal permissions blocks to reusable workflows
@fzipi fzipi merged commit 7e1ee6d into main Mar 16, 2026
@fzipi fzipi deleted the fix/harden-gha-workflows branch March 16, 2026 17:49
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