Skip to content

Commit a60c97d

Browse files
pr feedback
1 parent b1f0b84 commit a60c97d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/octoguard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
with:
3535
script: |
3636
const fs = require('fs');
37-
const path = '.github/workflows';
38-
if (!fs.existsSync(path)){
37+
const workflowsPath = '.github/workflows';
38+
if (!fs.existsSync(workflowsPath)){
3939
core.warning("No workflow directory found, skipping zizmor scan.");
4040
return;
4141
}
4242
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'));
4444
if (workflows.length > 0) {
4545
core.info(`${workflows.length} workflows found in this repository.`);
4646
core.exportVariable('HAS_WORKFLOWS', 'true');

0 commit comments

Comments
 (0)