88 pull_request :
99 types : [opened, reopened, synchronize, ready_for_review]
1010
11+ permissions :
12+ contents : read
13+
1114jobs :
1215 test-nodejs-pr :
1316 name : Test NodeJS PR - ${{ matrix.os }}
@@ -18,21 +21,21 @@ jobs:
1821 steps :
1922 - if : >
2023 !github.event.pull_request.draft && !(
21- (github.actor == 'asyncapi-bot' && (
24+ (github.event.pull_request.user.login == 'asyncapi-bot' && (
2225 startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') ||
2326 startsWith(github.event.pull_request.title, 'chore(release):')
2427 )) ||
25- (github.actor == 'asyncapi-bot-eve' && (
28+ (github.event.pull_request.user.login == 'asyncapi-bot-eve' && (
2629 startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') ||
2730 startsWith(github.event.pull_request.title, 'chore(release):')
2831 )) ||
29- (github.actor == 'allcontributors[bot]' &&
32+ (github.event.pull_request.user.login == 'allcontributors[bot]' &&
3033 startsWith(github.event.pull_request.title, 'docs: add')
3134 )
3235 )
3336 id: should_run
3437 name: Should Run
35- run: echo "shouldrun=true" >> $GITHUB_OUTPUT
38+ run: echo "shouldrun=true" >> " $GITHUB_OUTPUT"
3639 shell: bash
3740 - if : steps.should_run.outputs.shouldrun == 'true'
3841 name : Set git to use LF # to once and for all finish neverending fight between Unix and Windows
@@ -43,10 +46,12 @@ jobs:
4346 - if : steps.should_run.outputs.shouldrun == 'true'
4447 name : Checkout repository
4548 uses : actions/checkout@v4
49+ with :
50+ persist-credentials : false
4651 - if : steps.should_run.outputs.shouldrun == 'true'
4752 name : Check if Node.js project and has package.json
4853 id : packagejson
49- run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
54+ run : test -e ./package.json && echo "exists=true" >> " $GITHUB_OUTPUT" || echo "exists=false" >> " $GITHUB_OUTPUT"
5055 shell : bash
5156 - if : steps.packagejson.outputs.exists == 'true'
5257 name : Determine what node version to use
0 commit comments