Skip to content

CI(testing): Resolve zizmor security findings - #106

Merged
ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:fix/zizmor-security-findings
Jun 19, 2026
Merged

ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:fix/zizmor-security-findings

Conversation

@ModeSevenIndustrialSolutions

Copy link
Copy Markdown
Member

Summary

Resolves all zizmor static-analysis findings
in the test workflow (.github/workflows/testing.yaml).

A full zizmor . scan now reports no findings (4 suppressed by
zizmor defaults), down from 4 actionable findings.

Findings addressed

Rule Severity Fix
artipacked Low Set persist-credentials: false on both actions/checkout steps so the GITHUB_TOKEN is not persisted in the local git config and cannot leak through build artifacts
template-injection Informational Pass the action output through an env: variable (EXTRACTED_STRING) instead of expanding the steps.*.outputs.* context directly inside the run: block

Validation

  • zizmor . → No findings to report. Good job! (4 suppressed)
  • pre-commit hooks (yamllint, actionlint, workflow validation) pass

No behavioural change to the test logic; only the way untrusted values
reach the shell has been hardened.

Address all zizmor static-analysis findings in the test workflow:

- artipacked: set persist-credentials: false on both checkout
  steps so the GITHUB_TOKEN is not persisted in the local git
  config and cannot leak through build artifacts.
- template-injection: pass the action output through an env var
  (EXTRACTED_STRING) instead of expanding the steps output
  context directly inside the run block.

Co-authored-by: Claude <claude@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>

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

Hardens the repository’s test workflow against common GitHub Actions security pitfalls flagged by zizmor, without changing the underlying test behavior.

Changes:

  • Disabled credential persistence for both actions/checkout steps to reduce risk of GITHUB_TOKEN leakage via git config/artifacts.
  • Avoided direct expression expansion inside a run: script by passing the action output through an environment variable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions merged commit d35a2de into lfreleng-actions:main Jun 19, 2026
9 checks passed
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions deleted the fix/zizmor-security-findings branch June 19, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI CI and tests updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants