Skip to content

Commit d812c79

Browse files
authoredJan 31, 2025··
Add CodeQL scans to GitHub Actions Workflows (#28675)
### Details: This PR adds an additional job to `workflow_scans` workflow to scan GitHub Actions Workflows themselves using CodeQL
1 parent a7fe2a2 commit d812c79

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed
 

‎.github/workflows/windows_vs2019_release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
repo_token: ${{ secrets.GITHUB_TOKEN }}
4646
skip_when_only_listed_labels_set: 'docs'
4747
skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'
48-
48+
4949
- name: Get target branch
5050
id: set_target_branch
5151
run: |
@@ -192,7 +192,7 @@ jobs:
192192
sparse-checkout: |
193193
src/bindings/js
194194
path: 'openvino'
195-
195+
196196
- name: Download OpenVINO artifacts (JS)
197197
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
198198
with:
@@ -223,7 +223,7 @@ jobs:
223223
run: call npm test
224224

225225
- name: Add msbuild to PATH
226-
uses: microsoft/setup-msbuild@v2
226+
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2
227227

228228
- name: E2E of openvino-node package
229229
working-directory: ${{ env.OPENVINO_JS_DIR }}/node

‎.github/workflows/workflows_scans.yml

+31
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,37 @@ concurrency:
1818
permissions: read-all
1919

2020
jobs:
21+
codeql:
22+
name: github_actions_workflows_scan/codeql
23+
# Runner size impacts CodeQL analysis time. To learn more, please see:
24+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
25+
# - https://gh.io/supported-runners-and-hardware-resources
26+
# - https://gh.io/using-larger-runners
27+
# Consider using larger runners for possible analysis time improvements.
28+
runs-on: ubuntu-22.04
29+
timeout-minutes: 60
30+
permissions:
31+
security-events: write
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35+
timeout-minutes: 15
36+
with:
37+
submodules: 'false'
38+
sparse-checkout: .github/workflows
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
43+
with:
44+
languages: "actions"
45+
build-mode: "none"
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
49+
with:
50+
category: "/language:actions"
51+
2152
semgrep:
2253
name: github_actions_workflows_scan/semgrep
2354
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
Please sign in to comment.