chore: Harden all GitHub Workflows using Zizmor
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 62/100
Direzione di ricerca
Inizia esaminando i file esistenti in .github/workflows/** e i requisiti di .github/workflows/zizmor.yml. Configura zizmor-action per le pull request che modificano i workflow e per una scansione completa settimanale, quindi verifica che i risultati facciano fallire le esecuzioni delle PR e compaiano come annotazioni o in log chiari. Il lavoro è completato quando tutti i risultati sono stati risolti o registrati in issue successive.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Tool
zizmor — https://github.com/zizmorcore/zizmor
GitHub Action
zizmor-action — https://github.com/zizmorcore/zizmor-action
Goal
Harden all GitHub workflows using automated analysis and recommendations.
Implementation idea
- Add
zizmoras a dedicated GitHub Actions workflow that analyzes all workflows in.github/workflows/**. - Run it:
- on every pull request (only when files under
.github/workflows/**changed), and - on a weekly schedule (scan the full
.github/workflows/**set).
- on every pull request (only when files under
- Triage findings and apply recommended changes to workflows to improve security/compliance.
Triggers (detailed)
pull_request:paths: [".github/workflows/**"]- Runs for PRs targeting the default branch (and/or the repo’s main development branches as applicable).
schedule:- weekly cron (e.g.,
"0 0 * * 6" # Every Saturday 00:00 UTC) - Always scans all workflows under
.github/workflows/**(not change-filtered).
- weekly cron (e.g.,
Behavior on findings
- If
zizmorfinds issues in a pull request run, the workflow check must fail (block merge) until findings are addressed. - Reporting should use GitHub annotations if possible; otherwise fall back to clear text output in logs/job summary.
Output / Reporting
- Preferred: GitHub annotations surfaced directly in the PR checks UI.
- Fallback: simple text output (logs and/or job summary) that clearly lists findings.
Implementation details / constraints
- Workflow file:
.github/workflows/zizmor.yml - Runner:
ubuntu-latest - Permissions: least privilege (default to
contents: read, add only what is required) - Add reasonable
timeout-minutesto avoid hanging runs.
Acceptance Criteria
- A
zizmorworkflow exists in.github/workflows/and runs on:pull_requestevents withpaths: [".github/workflows/**"], and- a weekly
schedule.
- PR runs are blocking: the check fails if findings are detected.
- Findings are surfaced via annotations where possible; otherwise via simple text output.
Exit Criteria
- All
zizmorfindings are addressed by either:- fixing them in the same pull request that introduced them, or
- creating individual follow-up ticket(s)/issue(s) to track and complete the remediation.
- Lingua principale
- PHP
- Stelle
- 13
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di package-url/packageurl-php
-
BC: redesign for PURL 1.0Apertabreaking change
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
package-url/packageurl-php#243 · 2 commenti ·
-
Official support for php8.4 /8.5Forse di nuovo libera @jkowalleck l’ha presa 741 giorni fa e non c’è nessuna pull request aperta. Aperta
package-url/packageurl-php#199 · 1 assegnatario ·
-
drop support of php73/74Apertabreaking change
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Tutte le issue di package-url/packageurl-php
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
the-benchmarker/web-frameworks#10153 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
FreeCAD/FreeCAD-Homepage#366 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
unopim/shopify-connector#55 ·