From c243a5ff6db3276a1d9b7713acb5a8d8e122984e Mon Sep 17 00:00:00 2001 From: sakshi-1505 Date: Sun, 15 Oct 2023 17:17:55 +0530 Subject: [PATCH 1/2] feat: add codeql scheduled cronjob Signed-off-by: sakshi-1505 --- .github/workflows/codeql_analysis.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/codeql_analysis.yml diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml new file mode 100644 index 00000000..e69de29b From bcd65a755104b0c8fd1c2873bffda159a3b7303a Mon Sep 17 00:00:00 2001 From: sakshi-1505 Date: Sun, 15 Oct 2023 17:18:30 +0530 Subject: [PATCH 2/2] fix Signed-off-by: sakshi-1505 --- .github/workflows/codeql_analysis.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml index e69de29b..4765fa3b 100644 --- a/.github/workflows/codeql_analysis.yml +++ b/.github/workflows/codeql_analysis.yml @@ -0,0 +1,36 @@ +on: + workflow_dispatch: + schedule: + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * + - cron: '30 1 * * *' + push: + branches: [ main ] + pull_request: + +jobs: + CodeQL-Build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: go, python + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2