Skip to content

Commit 012e68a

Browse files
committed
fix: add GITHUB_TOKEN
1 parent ed3ebd3 commit 012e68a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 'Nx set SHAs'
22
description: 'Derives SHAs for base and head for use in nx affected commands, optionally setting them as env variables for the current job'
33

44
inputs:
5+
custom-token:
6+
description: 'The GitHub token used to perform git operations'
7+
default: ${{ github.token }}
58
main-branch-name:
69
description: 'The name of the main branch in your repo, used as the target of PRs. E.g. main, master etc'
710
default: 'main'

dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -64870,6 +64870,7 @@ const fs_1 = __nccwpck_require__(7147);
6487064870
const https_proxy_agent_1 = __nccwpck_require__(7219);
6487164871
const proxy_from_env_1 = __nccwpck_require__(3329);
6487264872
const { runId, repo: { repo, owner }, eventName, } = github.context;
64873+
process.env.GITHUB_TOKEN = core.getInput('custom-token');
6487364874
const mainBranchName = core.getInput('main-branch-name');
6487464875
const errorOnNoSuccessfulWorkflow = core.getBooleanInput('error-on-no-successful-workflow');
6487564876
const lastSuccessfulEvent = core.getInput('last-successful-event');

find-successful-workflow.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const {
1111
repo: { repo, owner },
1212
eventName,
1313
} = github.context;
14+
process.env.GITHUB_TOKEN = core.getInput('custom-token');
1415
const mainBranchName = core.getInput('main-branch-name');
1516
const errorOnNoSuccessfulWorkflow = core.getBooleanInput(
1617
'error-on-no-successful-workflow',

0 commit comments

Comments
 (0)