amannn / amannn/action-semantic-pull-request

BUG: GITHUB_TOKEN doesn't work when this action is in a shared WF

Open
#232 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.4k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

If this action is in a workflow triggered by workflow_call:, it does not have access to secrets.GITHUB_TOKEN like it should... I believe this is because you are using it as an env variable rather than just a parameter to pass into your action.

A clear and concise description of what the bug is.

Make a repo with this action in a workflow_call:

Reference that action with uses in an action from a different repo (same org/account)

Witness error.

It should run as defined by GitHub

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with this action in a workflow triggered by workflow_call, referenced from a workflow in another repository in the same organization. Inspect how the action receives secrets.GITHUB_TOKEN and verify the workflow completes with the token available as GitHub defines; done means the shared-workflow scenario runs without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.