Repository navigation
CI(testing): Resolve zizmor security findings - #106
Merged
ModeSevenIndustrialSolutions merged 1 commit intoJun 19, 2026
Conversation
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>
There was a problem hiding this comment.
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/checkoutsteps to reduce risk ofGITHUB_TOKENleakage 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.
zxiiro
approved these changes
Jun 19, 2026
ModeSevenIndustrialSolutions
merged commit Jun 19, 2026
d35a2de
into
lfreleng-actions:main
9 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 byzizmor defaults), down from 4 actionable findings.
Findings addressed
artipackedpersist-credentials: falseon bothactions/checkoutsteps so theGITHUB_TOKENis not persisted in the local git config and cannot leak through build artifactstemplate-injectionenv:variable (EXTRACTED_STRING) instead of expanding thesteps.*.outputs.*context directly inside therun:blockValidation
zizmor .→No findings to report. Good job! (4 suppressed)No behavioural change to the test logic; only the way untrusted values
reach the shell has been hardened.