Skip to content

Support self lookup in trust policy #29

@stevehipwell

Description

@stevehipwell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions