This reusable workflow file named workflow-B.yml, takes an input string and a secret from the caller workflow and uses them in an action.
workflow-B.yml,
name: Reusable workflow example on: workflow_call: inputs: config-path: required: true type: string secrets: token: required: true jobs: triage: runs-on: ubuntu-latest steps: - uses: actions/labeler@v4 with: repo-token: ${{ secrets.token }} configuration-path: ${{ inputs.config-path }}