diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8cbe4da..e1cdd7e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @crazy-max @temenuzhka-thede \ No newline at end of file +* @docker/devsecops diff --git a/.github/workflows/octoguard.yml b/.github/workflows/octoguard.yml index 003e2a3..09b4618 100644 --- a/.github/workflows/octoguard.yml +++ b/.github/workflows/octoguard.yml @@ -34,8 +34,13 @@ jobs: with: script: | const fs = require('fs'); + const workflowsPath = '.github/workflows'; + if (!fs.existsSync(workflowsPath)){ + core.warning("No workflow directory found, skipping zizmor scan."); + return; + } - const workflows = fs.readdirSync('.github/workflows').filter(file => file.endsWith('.yml') || file.endsWith('.yaml')); + const workflows = fs.readdirSync(workflowsPath).filter(file => file.endsWith('.yml') || file.endsWith('.yaml')); if (workflows.length > 0) { core.info(`${workflows.length} workflows found in this repository.`); core.exportVariable('HAS_WORKFLOWS', 'true');