@@ -67,24 +67,23 @@ jobs:
6767 if : inputs.lint-all && github.ref_name != github.event.repository.default_branch
6868 with :
6969 ref : " ${{ github.event.repository.default_branch }}"
70+ persist-credentials : false
7071
7172 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7273 with :
7374 fetch-depth : " ${{ inputs.lint-all && 1 || 0 }}"
75+ persist-credentials : false
7476
7577 - if : ${{ inputs.linter-env }}
78+ env :
79+ LINTER_ENV : ${{ inputs.linter-env }}
7680 run : |
77- LINTER_ENV=$(cat <<EOF
78- ${{ inputs.linter-env }}
79- EOF
80- )
81-
8281 echo "$LINTER_ENV" | while IFS= read -r line; do
8382 if [ -z "$line" ]; then continue; fi
8483 echo "$line" >> "$GITHUB_ENV"
8584 done
8685
87- # FIXME: superlinter should auto iunstall required dependencies. See https://github.com/super-linter/super-linter/issues/6089.
86+ # FIXME: superlinter should auto install required dependencies. See https://github.com/super-linter/super-linter/issues/6089.
8887 - id : has-prettier-plugins
8988 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
9089 with :
9998 return;
10099 }
101100 }
102- - uses : hoverkraft-tech/ci-github-nodejs/actions/setup-node@1d00c9eb280acbee5df4b4a2087f786e66b13d87 # 0.14.1
101+ - uses : hoverkraft-tech/ci-github-nodejs/actions/setup-node@4b87508052fc8b08a44a5d2d7d5f0636deb6ea3e # 0.15.0
103102 if : ${{ steps.has-prettier-plugins.outputs.package-json-dir }}
104103 with :
105104 working-directory : ${{ steps.has-prettier-plugins.outputs.package-json-dir }}
@@ -126,12 +125,14 @@ jobs:
126125 language : ${{ fromJSON(inputs.codeql-languages) }}
127126 steps :
128127 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
128+ with :
129+ persist-credentials : false
129130
130- - uses : github/codeql-action/init@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7
131+ - uses : github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
131132 with :
132133 languages : ${{ matrix.language }}
133134
134- - uses : github/codeql-action/analyze@e296a935590eb16afc0c0108289f68c87e2a89a5 # v4.30.7
135+ - uses : github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
135136 with :
136137 category : " /language:${{matrix.language}}"
137138
@@ -143,6 +144,7 @@ jobs:
143144 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
144145 with :
145146 fetch-depth : " ${{ inputs.lint-all && 1 || 0 }}"
147+ persist-credentials : false
146148
147149 - id : changed-files
148150 uses : tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
@@ -153,18 +155,21 @@ jobs:
153155
154156 - id : get-files-to-lint
155157 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
158+ env :
159+ CHANGED_FILES : ${{ toJSON(steps.changed-files.outputs.all_changed_and_modified_files) }};
160+ ACTION_FILES_INPUT : ${{ toJSON(inputs.action-files) }}
156161 with :
157162 script : |
158163 const fs = require("node:fs");
159164 const path = require("node:path");
160165
161- const changedFiles = ${{ toJSON(steps.changed-files.outputs.all_changed_and_modified_files) }} ;
166+ const changedFiles = process.env.CHANGED_FILES ;
162167
163168 let actionFiles = [];
164169 if (changedFiles !== null) {
165170 actionFiles = changedFiles.split(" ").filter(file => file && fs.existsSync(file));
166171 } else {
167- const actionFilesInput = ${{ toJson(inputs.action-files) }} ;
172+ const actionFilesInput = process.env.ACTION_FILES_INPUT ;
168173
169174 for (const actionFile of actionFilesInput.split("\n")) {
170175 let sanitizedActionFile = actionFile.trim();
0 commit comments