Review security practices for shared workflows and organization access

Aperta
#121 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions
Ambito
ci-cd, security

Direzione di ricerca

Start by reviewing the repository’s shared workflow files and the referenced GitHub Actions security guidance, then compare their permissions, triggers, dependencies, and credential use against the checklist. Some checklist items require organization or downstream repository settings, so identify which safeguards can be changed here and which need external owners. Done means the applicable safeguards are reviewed and documented or implemented, with the external settings clearly identified.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As our shared workflows affect multiple packages, could we review the following safeguards? AI-assisted phishing and impersonation make strong account security increasingly important; limiting workflow permissions also helps contain the impact of a compromised account or dependency.

Suggested checklist
  • Require secure-only two-factor authentication, after notifying all affected members and collaborators. Disable SMS, including as a backup, and retain safe recovery options to reduce account-takeover risk.
  • Review organization owners and repository access. Keep elevated access limited to people who need it, reducing the impact of a compromised account.
  • Default workflow permissions to read-only, granting additional permissions only to the jobs that need them. Disable workflow approval of pull requests unless required to reduce unintended write access.
  • Protect the default branch and shared workflow changes with required review, relevant checks, and narrowly limited bypass permissions. Changes here can affect many downstream repositories.
  • Review action and reusable-workflow dependencies. Pin external dependencies to reviewed immutable revisions and automate updates; document the trade-off where callers intentionally follow @main.
  • Inventory stored credentials across repositories and environments. Confirm ownership, scope, expiration, and continued need; remove unused secrets and prefer short-lived or narrowly scoped credentials over broad personal tokens. Never share secret values during the review.
  • Keep untrusted pull-request code away from privileged jobs and secrets. Review triggers, checkout references, and shell inputs to prevent credential theft or unintended execution.
  • Add automated workflow security checks, such as actionlint and zizmor, to catch risky changes before they reach downstream packages.

Some items require organization or downstream repository settings rather than changes in this repository.

References

Please also have a look at IndrajeetPatil/workflows for inspiration and reference, particularly its usage and security guidance. Its workflows have personal-owner restrictions, so the relevant practices would need adapting for easystats rather than adopting them directly. Thanks!

Lingua principale
Nessun dato sulla lingua
Stelle
9
Fork
4
Merge medio
5h 7m
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di easystats/workflows

Tutte le issue di easystats/workflows

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.