Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

A workflow to scan GitHub Actions Workflows (#27838)

Andrey Babushkin25d7e7e436dc
diff --git a/.github/workflows/workflows_scans.yml b/.github/workflows/workflows_scans.yml
new file mode 100644
index 00000000000..0a293a4152b
--- /dev/null
+++ b/.github/workflows/workflows_scans.yml
@@ -0,0 +1,38 @@
+name: GitHub Actions Workflows Scans
+on:
+ workflow_dispatch: {}
+ push:
+ paths:
+ - '.github/workflows/**'
+ branches:
+ - 'master'
+ - 'releases/**'
+ pull_request:
+ paths:
+ - '.github/workflows/**'
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+permissions: read-all
+
+jobs:
+ semgrep:
+ name: github_actions_workflows_scan/semgrep
+ runs-on: ubuntu-latest
+ if: ${{ github.repository_owner == 'openvinotoolkit' }}
+
+ container:
+ image: semgrep/semgrep
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ with:
+ submodules: 'false'
+ sparse-checkout: .github/workflows
+
+ - name: Semgrep scan
+ run: |
+ semgrep scan --error -j 8 --config "p/github-actions" .github/workflows/*