I am creating my own GitHub Action.
I want to be able to pass a secret to it, so I have the following declaration at the top of the file
secrets:
MY_SECRET:
description: A secret that this action needs
required: true
I am invoking it as follows:
- name: test my action
uses: MyOrg/my-repo/.github/actions/my_action@main
with:
something: someimput
secrets:
MY_SECRET: ${{ secrets.MY_SECRET }}
this fails with:
The workflow is not valid. .github/workflows/my_invoking_workflow.yaml (Line: 63, Col: 11): Unexpected value 'secrets'
How can I safely pass secrets to a custom GH action?