From c8de3ebf2b8e75b85164d0f5d53af78a67548dd1 Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Tue, 20 Sep 2022 17:48:46 +0000 Subject: [PATCH 1/3] fix codeql python flow --- .github/workflows/codeql-analysis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ab2b4a78..582eae0f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -52,8 +52,8 @@ jobs: # 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@v2 + # - name: Autobuild + # uses: github/codeql-action/autobuild@v2 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -62,9 +62,10 @@ jobs: # and modify them (or add more) to build your code if your project # uses a compiled language - #- run: | - # make bootstrap - # make release + - run: | + python3 -m venv venv + source venv/bin/activate + pip install -r requirements.txt - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 From 16b114c42798fc021a527eba41ace39ffcb3e807 Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Wed, 19 Oct 2022 12:48:46 +0000 Subject: [PATCH 2/3] try fix codeql No event triggers defined in `on` --- .github/workflows/codeql-analysis.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 582eae0f..9e592adf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,14 +11,7 @@ # name: "CodeQL" -on: - push: - branches: [ master ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] - schedule: - - cron: '37 18 * * 5' +on: [push] jobs: analyze: From b7e3f10a85771da040f6b142b34e95950cce9bce Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Thu, 20 Jul 2023 03:37:18 +0000 Subject: [PATCH 3/3] allow manual codeql dispatch --- .github/workflows/codeql-analysis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 9e592adf..f467e83d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,7 +11,9 @@ # name: "CodeQL" -on: [push] +on: + push: + workflow_dispatch: jobs: analyze: