Skip to content

Commit 4c515f6

Browse files
authored
Modify CodeQL workflow schedule and action versions
Updated the CodeQL workflow to change the cron schedule and update action versions.
1 parent d4d4ead commit 4c515f6

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "main", "DSSRF_Branch_Rule" ]
6+
pull_request:
7+
branches: [ "main", "DSSRF_Branch_Rule" ]
8+
schedule:
9+
- cron: '* * * * *'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15+
permissions:
16+
# required for all workflows
17+
security-events: write
18+
19+
# required to fetch internal or private CodeQL packs
20+
packages: read
21+
22+
# only required for workflows in private repositories
23+
actions: read
24+
contents: read
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- language: actions
31+
build-mode: none
32+
- language: javascript-typescript
33+
build-mode: none
34+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
35+
# Use `c-cpp` to analyze code written in C, C++ or both
36+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
37+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
38+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
39+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
40+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
41+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@7434149006143a4d75b82a2f411ef15b03ccc2d7
49+
with:
50+
languages: ${{ matrix.language }}
51+
build-mode: ${{ matrix.build-mode }}
52+
53+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
54+
queries: security-extended,security-and-quality

0 commit comments

Comments
 (0)