Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Update codeQL workflow

Roland Geider023efdd7d166
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 4119b7ac5..839882b95 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -2,24 +2,26 @@ name: "CodeQL"
on:
push:
- branches: [ master, ]
+ branches: [ master ]
pull_request:
- # The branches below must be a subset of the branches above
- branches: [ master, ]
+ branches: [ master ]
schedule:
- - cron: '0 1 * * 2'
-
-permissions:
- contents: read
+ - cron: '12 3 * * 1' # every Monday at 3:12 UTC
jobs:
- analyse:
- name: Analyse
+ analyze:
+ name: Analyze
runs-on: ubuntu-latest
permissions:
- security-events: write
actions: read
contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ 'python', 'actions' ]
+ # Supported languages https://git.io/codeql-language-support
steps:
- name: Checkout repository
@@ -28,25 +30,11 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
- # Override language selection by uncommenting this and choosing your languages
- # with:
- # languages: go, javascript, csharp, python, cpp, java
+ with:
+ languages: ${{ matrix.language }}
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
- # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- # ℹ️ Command-line programs to run using the OS shell.
- # 📚 https://git.io/JvXDl
-
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
- # and modify them (or add more) to build your code if your project
- # uses a compiled language
-
- #- run: |
- # make bootstrap
- # make release
-
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4