Skip to content

fix: pin all GitHub Actions to commit SHAs to resolve high-severity unpinned-uses alerts#25

Merged
idvoretskyi merged 1 commit intomainfrom
copilot/fix-security-issues
Apr 27, 2026
Merged

fix: pin all GitHub Actions to commit SHAs to resolve high-severity unpinned-uses alerts#25
idvoretskyi merged 1 commit intomainfrom
copilot/fix-security-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

All GitHub Actions workflow steps were referencing actions via mutable version tags (e.g. @v6, @v0.36.0). This is flagged as high-severity by code scanning (unpinned-uses, level=error) — a compromised action maintainer account could silently push malicious code under an existing tag.

Changes

  • Pin actions to commit SHAs — all 9 uses: references across ci.yml and security.yml replaced with immutable commit SHAs, with the original tag retained as a comment for readability:

    # Before
    uses: aquasecurity/trivy-action@v0.36.0
    
    # After
    uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
  • Add persist-credentials: false to all actions/checkout steps — prevents git credentials from being stored in .git/config and potentially leaking via artifacts (artipacked finding).

…ity unpinned-uses security issues

Agent-Logs-Url: https://github.com/idvoretskyi/dev/sessions/3c92063d-fc90-42a5-9cec-b871c70c1766

Co-authored-by: idvoretskyi <118459+idvoretskyi@users.noreply.github.com>
@idvoretskyi idvoretskyi merged commit 4b649aa into main Apr 27, 2026
7 checks passed
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