Skip to content

Support for github-token in update-discussion safe output #21923

Description

@mnkiefer

We want to support workflows as follows:

safe-outputs:
  allowed-github-references: [monalisa/ops-repo]
  create-issue:
    github-token: ${{ secrets.WRITE_TO_OPSREPO_TOKEN }}
    title-prefix: "[Summary]"
    close-older-issues: true
  update-discussion:
    staged: true
    github-token: ${{ secrets.READ_DISCUSSIONS_TOKEN }}
    target: "*"
    target-repo: monalisa/discussions-repo

But currently this is not supported and the compiler fails with the following error:

error: 'safe-outputs/update-discussion' (line 36, col 5): Unknown property: github-token. Valid fields are: allowed-labels, body, footer, labels, max, staged, target, target-repo, title. 'github-token' belongs under 'tools/github', 'on' or 'plugins'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions