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

Missing secrets argument in promote_charm.yaml #48

Open
yhaliaw opened this issue Nov 23, 2022 · 1 comment
Open

Missing secrets argument in promote_charm.yaml #48

yhaliaw opened this issue Nov 23, 2022 · 1 comment

Comments

@yhaliaw
Copy link
Contributor

yhaliaw commented Nov 23, 2022

The secrets.CHARMHUB_TOKEN and secrets.GITHUB_TOKEN secrets used in the promote_charm.yaml that is not defined as arguments.
https://github.com/canonical/operator-workflows/blob/main/.github/workflows/promote_charm.yaml

Can it be changed to:

on:
  workflow_call:
    inputs:
      origin-channel:
        type: string
        description: 'Origin Channel'
      destination-channel:
        type: string
        description: 'Destination Channel'
  secrets:
    CHARMHIB_TOKEN:
      required: true
    GITHUB_TOKEN:
      required: true

So it is clearer, to users the names of secrets to be passed.

Docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_callsecrets

Should I create a pull request for this?

@arturo-seijas
Copy link
Collaborator

Makes sense to me. :)

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

2 participants