Skip to content

chore(ci): security hardening - #20

Merged
iota9star merged 1 commit into
mainfrom
chore/security-hardening
Aug 13, 2026
Merged

chore(ci): security hardening#20
iota9star merged 1 commit into
mainfrom
chore/security-hardening

Conversation

@iota9star

Copy link
Copy Markdown
Member

Closes fluttercandies/security-scanner#79

Addresses zizmor CI/CD security findings across the three workflow files:

unpinned-uses — Pinned all third-party and first-party GitHub Actions to commit SHAs with version tags retained as comments (checkout, flutter-action, rust-toolchain, upload/download-artifact, setup-java, setup-dart, android-emulator-runner, action-gh-release).

artipacked — Added persist-credentials: false to every actions/checkout step so the auto-persisted GITHUB_TOKEN is not left in the local git config.

secrets-inherit — Replaced secrets: inherit on the reusable publish-precompiled workflow calls with explicit secret passthrough (PRECOMPILE_BINARIES_PRIVATE_KEY); GITHUB_TOKEN is auto-provided to reusable workflows.

Copilot AI lite review requested due to automatic review settings August 13, 2026 14:19
@iota9star
iota9star merged commit 98037bd into main Aug 13, 2026
1 check passed
@iota9star
iota9star deleted the chore/security-hardening branch August 13, 2026 14:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens GitHub Actions workflows based on zizmor security findings by reducing supply-chain risk from unpinned actions, preventing credential persistence in local git config, and narrowing secret exposure when calling reusable workflows.

Changes:

  • Pinned all referenced GitHub Actions to specific commit SHAs (retaining version tags as comments).
  • Added persist-credentials: false to actions/checkout steps to avoid leaving GITHUB_TOKEN in git config.
  • Replaced secrets: inherit with explicit secret passthrough for reusable workflow calls.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/publish-pub.yml Pins actions, disables checkout credential persistence, and switches reusable workflow call to explicit secret passing.
.github/workflows/precompile-binaries.yml Pins actions and disables checkout credential persistence in the reusable workflow.
.github/workflows/build-all-platforms.yml Pins actions, disables checkout credential persistence broadly, and switches reusable workflow call to explicit secret passing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 24 to 26
- name: Checkout full history
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
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.

[CI/CD Security] fluttercandies/fjs - Issue Report

2 participants