Skip to content

Commit c2070c0

Browse files
committed
massive ci improvements
1 parent 22bb3f3 commit c2070c0

5 files changed

Lines changed: 27 additions & 32 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ name: "CodeQL"
77

88
on:
99
push:
10-
branches: [master]
10+
branches:
11+
- master
1112
pull_request:
1213
# The branches below must be a subset of the branches above
13-
branches: [master]
14+
branches:
15+
- master
1416
schedule:
1517
- cron: '0 15 * * 3'
1618

@@ -24,26 +26,23 @@ jobs:
2426
matrix:
2527
# Override automatic language detection by changing the below list
2628
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27-
language: ['javascript', 'python']
29+
language:
30+
- 'javascript'
31+
- 'python'
2832
# Learn more...
2933
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
3034

3135
steps:
3236
- name: Checkout repository
33-
uses: actions/checkout@v3
37+
uses: actions/checkout@v6.0.2
3438
with:
3539
# We must fetch at least the immediate parents so that if this is
3640
# a pull request then we can checkout the head.
3741
fetch-depth: 2
3842

39-
# If this run was triggered by a pull request event, then checkout
40-
# the head of the pull request instead of the merge commit.
41-
- run: git checkout HEAD^2
42-
if: ${{ github.event_name == 'pull_request' }}
43-
4443
# Initializes the CodeQL tools for scanning.
4544
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
45+
uses: github/codeql-action/init@v4.33.0
4746
with:
4847
languages: ${{ matrix.language }}
4948
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +53,7 @@ jobs:
5453
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5554
# If this step fails, then you should remove it and run the build manually (see below)
5655
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
56+
uses: github/codeql-action/autobuild@v4.33.0
5857

5958
# ℹ️ Command-line programs to run using the OS shell.
6059
# 📚 https://git.io/JvXDl
@@ -68,4 +67,4 @@ jobs:
6867
# make release
6968

7069
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
70+
uses: github/codeql-action/analyze@v4.33.0

.github/workflows/docker-image.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ name: Docker Image CI
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches:
7+
- master
78

89
jobs:
910
build:
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@v5
13+
- uses: actions/checkout@v6.0.2
1314

1415
- name: Set up QEMU
1516
uses: docker/setup-qemu-action@v3

.github/workflows/pytest.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [master]
8+
branches:
9+
- master
810
schedule:
911
# Every Sunday at 0AM UTC
1012
- cron: "0 0 * * 0"
@@ -14,7 +16,7 @@ jobs:
1416
runs-on: ubuntu-latest
1517

1618
steps:
17-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v6.0.2
1820
with:
1921
fetch-depth: 0
2022

.github/workflows/shiftleft-analysis.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,30 @@ name: SL Scan
66
# This section configures the trigger for the workflow. Feel free to customize depending on your convention
77
on:
88
push:
9-
branches: [master]
9+
branches:
10+
- master
1011
pull_request:
11-
branches: [master]
12+
branches:
13+
- master
1214

1315
jobs:
1416
Scan-Build:
15-
# Scan runs on ubuntu, mac and windows
1617
runs-on: ubuntu-latest
1718
steps:
18-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v6.0.2
1920
with:
2021
fetch-depth: 0
21-
# Instructions
22-
# 1. Setup JDK, Node.js, Python etc depending on your project type
23-
# 2. Compile or build the project before invoking scan
24-
# Example: mvn compile, or npm install or pip install goes here
25-
# 3. Invoke Scan with the github token. Leave the workspace empty to use relative url
2622

2723
- name: Perform Scan
28-
uses: ShiftLeftSecurity/scan-action@master
24+
uses: ShiftLeftSecurity/scan-action@v1.3.0
2925
env:
3026
WORKSPACE: ""
3127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3228
SCAN_AUTO_BUILD: true
3329
with:
3430
output: reports
35-
# Scan auto-detects the languages in your project. To override uncomment the below variable and set the type
36-
# type: credscan,java
37-
# type: python
3831

3932
- name: Upload report
40-
uses: github/codeql-action/upload-sarif@v2
33+
uses: github/codeql-action/upload-sarif@v4.33.0
4134
with:
4235
sarif_file: reports

.github/workflows/vulnerable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: Get Some Secrets
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6.0.2
2626
with:
2727
fetch-depth: 0
2828

0 commit comments

Comments
 (0)