We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0db637a + a60c97d commit 16082d7Copy full SHA for 16082d7
.github/CODEOWNERS
@@ -1 +1 @@
1
-* @crazy-max @temenuzhka-thede
+* @docker/devsecops
.github/workflows/octoguard.yml
@@ -34,8 +34,13 @@ jobs:
34
with:
35
script: |
36
const fs = require('fs');
37
+ const workflowsPath = '.github/workflows';
38
+ if (!fs.existsSync(workflowsPath)){
39
+ core.warning("No workflow directory found, skipping zizmor scan.");
40
+ return;
41
+ }
42
- 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
if (workflows.length > 0) {
45
core.info(`${workflows.length} workflows found in this repository.`);
46
core.exportVariable('HAS_WORKFLOWS', 'true');
0 commit comments