File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ jobs:
34
34
with :
35
35
script : |
36
36
const fs = require('fs');
37
- const path = '.github/workflows';
38
- if (!fs.existsSync(path )){
37
+ const workflowsPath = '.github/workflows';
38
+ if (!fs.existsSync(workflowsPath )){
39
39
core.warning("No workflow directory found, skipping zizmor scan.");
40
40
return;
41
41
}
42
42
43
- const workflows = fs.readdirSync('.github/workflows' ).filter(file => file.endsWith('.yml') || file.endsWith('.yaml'));
43
+ const workflows = fs.readdirSync(workflowsPath ).filter(file => file.endsWith('.yml') || file.endsWith('.yaml'));
44
44
if (workflows.length > 0) {
45
45
core.info(`${workflows.length} workflows found in this repository.`);
46
46
core.exportVariable('HAS_WORKFLOWS', 'true');
You can’t perform that action at this time.
0 commit comments