Add Actions policies support

Abierto
#1,127 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github, javascript, yaml
Área
api, devtools

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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]
Lenguaje dominante
JavaScript
Estrellas
942
Forks
238
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github-community-projects/safe-settings

Todos los issues de github-community-projects/safe-settings

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.