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

GitHub Actions secrets improvements for Reusable workflows #636

Open
github-product-roadmap opened this issue Feb 22, 2023 · 0 comments
Open
Labels
actions Feature: GitHub Actions all Product SKU: All beta Feature phase: Beta

Comments

@github-product-roadmap
Copy link
Collaborator

Summary

Today, a reusable workflow can only refer to the secrets from the repository where it is called (the caller repository), rather than the one in which it lives (the called repository). However, giving access to the secrets to the entire repository means anyone in the repository can use the secret.

With this current improvement, teams managing reusable workflows can refer to the secrets from the called (source) repos. These secrets are available only in the reusable workflow run context within in the caller (target) repos.

Intended Outcome

  • Customers frequently have DevOps/platform teams that set policy centrally for tasks such as production deployments, while they have developer teams that own their own code and invoke the central policies.
  • The platform team can create a reusable workflow (e.g., deploy.yml) in a repository managed by them and also define secrets referred to in the workflow.
  • When a developer team uses the reusable workflow, they don't have to worry about the secrets used in the reusable workflow. Those secrets will not be accessible outside the context of the reusable workflow run.

How will it work?

  • When a reusable workflow author wants to enforce the use of a secret from the called (source) repository, he or she will refer to that secret with a special syntax such as secret.source.NAME (syntax is not finalized yet)
  • When that reusable workflow is run in the caller (target) repo, the secrets referred with the special syntax will be passed from the called (source) repo.
  • Those secrets cannot be accessed outside the reusable workflow run context, preventing the developer team from viewing or exfiltrating them.
@github github locked and limited conversation to collaborators Feb 22, 2023
@github-product-roadmap github-product-roadmap added actions Feature: GitHub Actions all Product SKU: All ga Feature phase: Generally available labels Feb 22, 2023
@github-product-roadmap github-product-roadmap added beta Feature phase: Beta and removed ga Feature phase: Generally available labels May 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
actions Feature: GitHub Actions all Product SKU: All beta Feature phase: Beta
Projects
Development

No branches or pull requests

1 participant