Repository navigation
✨ Add workflow security audit with zizmor - #6370
Conversation
|
Co-authored-by: dubzzz <5300235+dubzzz@users.noreply.github.com>
Co-authored-by: dubzzz <5300235+dubzzz@users.noreply.github.com>
| # Install zizmor using pipx for isolated environment | ||
| # Note: We intentionally don't pin the version to ensure the scheduled | ||
| # runs benefit from the latest security checks and issue detection | ||
| pipx install zizmor |
Co-authored-by: dubzzz <5300235+dubzzz@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR introduces a new GitHub Actions workflow to run zizmor, a security auditing tool for GitHub Actions workflows. The workflow is designed to run automatically when workflow files are modified, on a weekly schedule to catch new zizmor releases and newly discovered security issues, and can also be triggered manually.
Key changes:
- Adds automated security auditing for GitHub Actions workflows using zizmor
- Configures multiple trigger mechanisms: pull requests, pushes, scheduled runs, and manual dispatch
- Pins zizmor to version 1.18.0 and installs it via pipx for isolation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: dubzzz <5300235+dubzzz@users.noreply.github.com>
@fast-check/ava
@fast-check/expect-type
fast-check
@fast-check/jest
@fast-check/packaged
@fast-check/poisoning
@fast-check/vitest
@fast-check/worker
commit: |
|
👋 A preview of the new documentation is available at: http://6940837f57ee7b95774adaca--dubzzz-fast-check.netlify.app |
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| audit: | ||
| name: 'Audit GitHub Actions workflows' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
|
|
||
| - name: Install zizmor | ||
| run: | | ||
| # Install zizmor using pipx for isolated environment | ||
| pipx install zizmor==1.18.0 | ||
|
|
Co-authored-by: dubzzz <5300235+dubzzz@users.noreply.github.com>
Co-authored-by: dubzzz <5300235+dubzzz@users.noreply.github.com>
|
👋 A preview of the new documentation is available at: http://694085a657ee7b99b04adb07--dubzzz-fast-check.netlify.app |
|
👋 A preview of the new documentation is available at: http://6940880df7d34ab1fbfb03ab--dubzzz-fast-check.netlify.app |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6370 +/- ##
=======================================
Coverage 94.82% 94.82%
=======================================
Files 206 206
Lines 5503 5503
Branches 1442 1442
=======================================
Hits 5218 5218
Misses 272 272
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
👋 A preview of the new documentation is available at: http://6940949000a2b3ebef0ca9b3--dubzzz-fast-check.netlify.app |
|
@copilot could you fix warning[artipacked]: credential persistence through GitHub Actions artifacts |
Co-authored-by: dubzzz <5300235+dubzzz@users.noreply.github.com>
|
👋 A preview of the new documentation is available at: http://694135d1f9e783551932a675--dubzzz-fast-check.netlify.app |
Adds automated security auditing of GitHub Actions workflows using zizmor, which detects template injection, credential leakage, excessive permissions, and other security issues.
Workflow triggers
.github/workflows/**changesImplementation details
zizmor .cancel-in-progress: trueto prevent wasting CI resources when new commits are pushedpersist-credentials: falseto prevent credential persistence through artifactsThe workflow will surface security findings for review when workflows are modified.
> [!WARNING]
>
>
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.