Skip to content

Commit

Permalink
fix: add GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Feb 28, 2025
1 parent ed3ebd3 commit 7bd1eeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: 'Nx set SHAs'
description: 'Derives SHAs for base and head for use in nx affected commands, optionally setting them as env variables for the current job'

inputs:
gh-token:
description: 'The GitHub token used to perform git operations'
default: ${{ github.token }}
main-branch-name:
description: 'The name of the main branch in your repo, used as the target of PRs. E.g. main, master etc'
default: 'main'
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64870,6 +64870,7 @@ const fs_1 = __nccwpck_require__(7147);
const https_proxy_agent_1 = __nccwpck_require__(7219);
const proxy_from_env_1 = __nccwpck_require__(3329);
const { runId, repo: { repo, owner }, eventName, } = github.context;
process.env.GITHUB_TOKEN = core.getInput('gh-token');
const mainBranchName = core.getInput('main-branch-name');
const errorOnNoSuccessfulWorkflow = core.getBooleanInput('error-on-no-successful-workflow');
const lastSuccessfulEvent = core.getInput('last-successful-event');
Expand Down
1 change: 1 addition & 0 deletions find-successful-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const {
repo: { repo, owner },
eventName,
} = github.context;
process.env.GITHUB_TOKEN = core.getInput('gh-token');
const mainBranchName = core.getInput('main-branch-name');
const errorOnNoSuccessfulWorkflow = core.getBooleanInput(
'error-on-no-successful-workflow',
Expand Down

0 comments on commit 7bd1eeb

Please sign in to comment.