GitHub Actions Policy
This page documents the policies for using GitHub Actions at the Apache Software Foundation.
For details on the use of requirement level terms, see the requirements levels standard.
You MUST NOT use
pull_request_target as a trigger on ANY action that exports ANY confidential credentials or tokens such as
You MAY use all actions internal to the
actions/* namespaces without restrictions.
You MUST pin all external actions to the specific git hash (SHA1) of the action that has been reviewed for use by the project. For instance, you MUST pin
Using self-hosted runners with GitHub Actions
See this guidance on GitHub - self-hosted runners.
Pushing commits to repositories
In general, only committers MAY push commits to repositories.
Automated services such as GitHub Actions (and Jenkins, BuildBot, etc.) MAY work on website content and other non-released data such as documentation and convenience binaries. Automated services MUST NOT push data to a repository or branch that is subject to official release as a software package by the project, unless the project secures specific prior authorization of the workflow from Infrastructure.
Non-committer contributors and GitHub Actions
GitHub provides an option to allow a non-committer contributor to use GitHub Actions if a previous pull request by that person has been approved. This raises security concerns, and could cause issues with overall use of GitHub Actions.
The default for this option is to “always require approval for external contributors”.
Projects that have a strong desire to use the “only require approval first time” option should communicate that, explaining their reasons, in a Jira ticket for Infra.
Projects will be allowed to continue using the "only require approval first time" feature, provided they affirm that they will actively monitor their workflows for abuse and act accordingly. Failure to do so may result in the workflow settings being switched back to "always require approval for external contributors".
Copyright 2023, The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
Apache® and the Apache feather logo are trademarks of The Apache Software Foundation...