Skip to content

Commit 5f5e934

Browse files
committed
Add CodeQL scanning workflow
1 parent 5ecb8f7 commit 5f5e934

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

.github/codeql/codeql-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3+
4+
name: CodeQL configuration
5+
paths:
6+
- cd3_automation_toolkit
7+
- othertools
8+
- .github/workflows
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3+
4+
# Run CodeQL over the repository. For more configuration options see .github/codeql/codeql-config.yaml
5+
# and: https://github.com/github/codeql-action
6+
7+
name: CodeQL
8+
on:
9+
push:
10+
branches:
11+
- main
12+
- develop
13+
pull_request:
14+
branches:
15+
- main
16+
- develop
17+
schedule:
18+
- cron: 20 15 * * 3
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
analyze:
24+
name: Analyze
25+
runs-on: ubuntu-latest
26+
permissions:
27+
actions: read
28+
contents: read
29+
security-events: write
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
34+
language: [python, actions]
35+
steps:
36+
37+
- name: Checkout repository
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
43+
with:
44+
languages: ${{ matrix.language }}
45+
config-file: .github/codeql/codeql-config.yaml
46+
# Override the default behavior so that the action doesn't attempt
47+
# to auto-install Python dependencies.
48+
setup-python-dependencies: false
49+
50+
- name: Perform CodeQL Analysis
51+
uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
52+

0 commit comments

Comments
 (0)