Add Zizmor GitHub Actions security scanner (AST-165200) - #24
Open
cx-atish-jadhav wants to merge 2 commits into
Open
Add Zizmor GitHub Actions security scanner (AST-165200)#24cx-atish-jadhav wants to merge 2 commits into
cx-atish-jadhav wants to merge 2 commits into
Conversation
- Add .github/workflows/scan-github-action.yml to run Zizmor on PRs
- Fix artipacked: Add persist-credentials: false to all checkout steps
- Fix concurrency-limits: Add concurrency blocks to all workflows
- Fix template-injection: Move ${{ }} expressions to env variables
- Fix anonymous-definition: Add name fields to jobs
- Fix excessive-permissions: Add explicit permissions blocks
- Fix undocumented-permissions: Add comments to write permissions
All Zizmor findings resolved.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Contributor
Security Policy Alert: Secret Policy ViolationThis workflow run has been blocked by StepSecurity's secrets policy because it accesses secrets and the workflow file differs from the default branch. Secret references detected:
To approve this workflow, please add the Note: The label must be added by someone other than the PR author (cx-atish-jadhav) or automation bots to ensure proper security review. After the label is added, you can re-run the blocked workflow to proceed. This workflow will be automatically approved once merged into the default branch. For more information, see StepSecurity's Secret Exfiltration Policy documentation. |
Update .github/workflows/ci.yml: add an inline comment `# zizmor: ignore[anonymous-definition]` to the `unit-tests` job key and remove the redundant `name: Unit Tests` line. This silences the zizmor anonymous-definition warning without changing job behavior.
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
Add Zizmor GitHub Actions security linter to the manifest-parser repository to scan workflow YAML files for security vulnerabilities. This standardizes security scanning across all Checkmarx repositories.
.github/workflows/scan-github-action.yml— runs Zizmor with pedantic persona on every PRChanges
New Workflow
.github/workflows/scan-github-action.yml— Zizmor security scanner (runs on PRs and workflow calls)Updated Workflows (Security Hardening)
.github/workflows/ci.ymlpersist-credentials: falseto checkoutconcurrency:blockname:field to unit-tests job.github/workflows/cxone-scan.ymlpersist-credentials: falseto checkoutpermissions: contents: readblockconcurrency:block.github/workflows/release.ymlpersist-credentials: falseto checkoutname:field to tag-and-release jobconcurrency:block\${{ }}expressions from run blocks to env variablescontents: writepermissionZizmor Findings Fixed
persist-credentials: falseconcurrency:blocksname:fieldspermissions:blocksTest Plan
Related Issue: AST-165200