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

Support self lookup in trust policy #29

Open
stevehipwell opened this issue Jul 16, 2024 · 0 comments
Open

Support self lookup in trust policy #29

stevehipwell opened this issue Jul 16, 2024 · 0 comments

Comments

@stevehipwell
Copy link

I'd like to be able to reference the current repo in a trust policy without needing to hardcode the values. Something like the following could work and align with GitHub Actions.

issuer: https://token.actions.githubusercontent.com
subject: repo:${{ github.repository }}:pull_request
base_ref: refs/heads/main
actor: dependabot[bot]

permissions:
  contents: write

It'd only make sense to implement a small subset of the github context for static values but this would make it easier to use octo-sts across multiple repos.

  • github.repository
  • github.repository_owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant