Add Actions policies support

Aperta
#1,127 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, javascript, yaml
Ambito
api, devtools

Direzione di ricerca

Read the repository's existing settings and plugin handling entry points to find how repository configuration is translated into GitHub API calls. Compare that flow with the Actions policies REST API linked in the issue and determine how the proposed actions_policies configuration maps to its fields. Done means repository Actions policies can be managed from configuration; add or update tests for the configuration and API behavior.

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

Descrizione

enhancement

Prerequisites:

  • Is the functionality available in the GitHub UI? If so, please provide a link to information about the feature.

Yes, check https://docs.github.com/en/actions/concepts/about-actions-policies

Yes, see https://docs.github.com/en/rest/actions/policies?apiVersion=2026-03-10

New Feature

Please describe the desired new functionality:

I expect the ability to manage (repository) actions policies, e.g. by a new plugin. Here's how the configuration may look like, based on API fields:

.github/repos/.yml (or settings.yml / suborgs/*.yml)

actions_policies:
  - name: restrict-deploy-workflows
    enforcement: active
    conditions:
      workflow_path:
        include:
          - .github/workflows/deploy*.yml
        exclude:
          - .github/workflows/deploy-docs.yml
    rules:
      - type: restrict_actions_actors
        parameters:
          allowed_actors:
            - id: 12345
              type: Team
      - type: restrict_action_events
        parameters:
          allowed_events:
            - push
            - workflow_dispatch

  - name: audit-everything
    enforcement: evaluate
    rules:
      - type: restrict_action_events
        parameters:
          allowed_events: [push, pull_request, schedule]
Lingua principale
JavaScript
Stelle
942
Fork
238
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 github-community-projects/safe-settings

Tutte le issue di github-community-projects/safe-settings

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.