Skip to content

ci: pin action SHAs, set permissions, and prevent template injection - #115

Open
dkhawk wants to merge 1 commit into
mainfrom
ci/workflow-security-hardening
Open

ci: pin action SHAs, set permissions, and prevent template injection#115
dkhawk wants to merge 1 commit into
mainfrom
ci/workflow-security-hardening

Conversation

@dkhawk

@dkhawk dkhawk commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR hardens the repository's GitHub Actions workflows against security vulnerabilities identified by Zizmor and CI scans:

  1. Explicit Permissions: Added top-level permissions: blocks to all workflow files (contents: read, security-events: write, pull-requests: write) following the principle of least privilege.
  2. Immutable Action Pinning: Pinned all actions (actions/checkout, actions/setup-java, gradle/actions/setup-gradle, peter-evans/create-pull-request, github/codeql-action/upload-sarif, madrapps/jacoco-report, actions/upload-artifact, googleapis/release-please-action) to full commit SHA hashes with version comments.
  3. Template Injection Prevention: Updated .github/workflows/test.yml to pass step outputs via env: variables instead of direct shell string interpolation (${{ steps.jacoco.outputs... }}).

Part of a stacked PR sequence to cleanly modernize dependencies, tests, and demo UX.

@googlemaps-bot

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 0%

There is no coverage information present for the Files changed

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