Skip to content

[enhancement] Ability to use secrets from inputs for safe-outputs::github-token #36558

@jitran

Description

@jitran

Hi 👋, with the safe-outputs::github-token, it is limited to the secrets.* context. My use case is to have a central repository of agentic workflows that can be invoked via workflow_dispatches from the gh cli, or another workflow, etc. I would like to pass a token as input to the workflow dispatch so that safe outputs github-token can refer to it.

The workarounds that I can think of:

  • If I'm calling the AW workflow from another workflow, I could convert AW workflow to a reusable workflow with workflow_call and inherit the secrets from the calling workflow. github-token will then be able to refer to the caller's secrets.
  • If I want to call the AW workflow from the gh cli, I’ll need to do double wrapping:
    • workflow_dispatch that takes input token
      • calls the AW reusable workflow with secrets passed in

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions