Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: worklow: add permissions field #2312

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 1, 2024

  1. feat: worklow: add permissions field

    The `permissions` field can either be a top level key, or a per-job one.
    It supports a map of scope<>permission relations.
    For example, to allow the jobs to write to the the packages registry,
    the following must be set:
    ```yaml
    permissions:
      packages: write
    ```
    
    this fixes that.
    Right now, this field is not used/useful when running the actions
    locally, but can be used to handle permissions on forges that implement the
    same action format, such as Forgejo/Gitea.
    
    Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
    Frankkkkk committed May 1, 2024
    Configuration menu
    Copy the full SHA
    00d43eb View commit details
    Browse the repository at this point in the history