Skip to content

Commit b40cbc6

Browse files
authored
Merge pull request #393 from antoniovazquezblanco/ci
CodeQL: Remove duplicated workflows and cleanup.
2 parents 52bab9e + 5099690 commit b40cbc6

File tree

2 files changed

+10
-120
lines changed

2 files changed

+10
-120
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/codeql.yml

Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,20 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
16-
branches: [ "master" ]
5+
branches: [master]
176
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ "master" ]
7+
branches: [master]
208
schedule:
21-
- cron: '31 5 * * 0'
9+
- cron: '0 12 * * 6'
2210

2311
permissions:
2412
contents: read
2513

2614
jobs:
2715
analyze:
2816
name: Analyze
29-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
17+
runs-on: ubuntu-latest
3018
permissions:
3119
actions: read
3220
contents: read
@@ -35,50 +23,26 @@ jobs:
3523
strategy:
3624
fail-fast: false
3725
matrix:
38-
language: [ 'python' ]
39-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
40-
# Use only 'java' to analyze code written in Java, Kotlin or both
41-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
42-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
26+
language: ['python', 'actions']
4327

4428
steps:
4529
- name: Harden Runner
46-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
30+
uses: step-security/harden-runner@v2.12.1
4731
with:
4832
egress-policy: audit
4933

5034
- name: Checkout repository
51-
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
35+
uses: actions/checkout@v4.2.2
5236

53-
# Initializes the CodeQL tools for scanning.
5437
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
38+
uses: github/codeql-action/init@v3.27.9
5639
with:
5740
languages: ${{ matrix.language }}
58-
# If you wish to specify custom queries, you can do so here or in a config file.
59-
# By default, queries listed here will override any specified in a config file.
60-
# Prefix the list here with "+" to use these queries and those in the config file.
6141

62-
# 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
63-
# queries: security-extended,security-and-quality
64-
65-
66-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
67-
# If this step fails, then you should remove it and run the build manually (see below)
6842
- name: Autobuild
69-
uses: github/codeql-action/autobuild@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
70-
71-
# ℹ️ Command-line programs to run using the OS shell.
72-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
73-
74-
# If the Autobuild fails above, remove it and uncomment the following three lines.
75-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
76-
77-
# - run: |
78-
# echo "Run, Build Application using script"
79-
# ./location_of_script_within_repo/buildscript.sh
43+
uses: github/codeql-action/autobuild@v3.27.9
8044

8145
- name: Perform CodeQL Analysis
82-
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
46+
uses: github/codeql-action/analyze@v3.27.9
8347
with:
8448
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)