fix: harden GitHub Actions against supply chain attacks#2
fix: harden GitHub Actions against supply chain attacks#2
Conversation
This hardens the repository against supply chain attacks like the aquasecurity/trivy-action compromise (2026-03-19). Changes: - Pin all GitHub Actions to immutable commit SHAs - Add/update Dependabot configuration for github-actions ecosystem Ref: netresearch/ofelia#535 Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the security of GitHub Actions workflows by pinning action references to specific commit SHAs, mitigating the risk of supply chain attacks. It also configures Dependabot for automatic action updates and enforces organizational security policies. Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds a Dependabot configuration for GitHub Actions. The configuration is a good start, but I've suggested an improvement to better manage version updates by separating major releases. More importantly, the PR description mentions pinning actions to commit SHAs, but those changes are not present. To fully address the security concerns, the action pinning changes should be included in this PR.
| patterns: | ||
| - "*" |
There was a problem hiding this comment.
Consider specifying update-types within your group to separate major version updates from minor and patch updates. Grouping all updates together can be problematic if a breaking change in one action's major update blocks the deployment of a simple patch for another. By creating separate PRs for major updates, you can handle them with more care and review them more thoroughly.
patterns:
- "*"
update-types:
- "minor"
- "patch"There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s GitHub Actions setup against tag/branch force-push supply chain attacks by switching to immutable action references and enabling automated upkeep via Dependabot.
Changes:
- Pin
actions/checkoutin the documentation workflow to a commit SHA. - Add a Dependabot configuration to check for GitHub Actions updates weekly (with grouping enabled).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/documentation.yml |
Replaces the actions/checkout@v4 tag reference with a pinned commit SHA to prevent tag force-push attacks. |
.github/dependabot.yml |
Adds Dependabot config to automate GitHub Actions update PRs on a weekly schedule. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Closing: fork, not actively maintained. |
Summary
Context
On 2026-03-19,
aquasecurity/trivy-actionwas compromised via a tag force-push attack that exfiltrated secrets from CI runners. SHA-pinning prevents this class of attack entirely.The netresearch org now enforces
sha_pinning_required=true— workflows using tag/branch references will fail.Ref: netresearch/ofelia#535
Test plan