From 4947243c2d7aea7c0e98e2c3986d0c200aca4a88 Mon Sep 17 00:00:00 2001 From: Aman Brar Date: Wed, 30 Dec 2020 10:03:09 -0500 Subject: [PATCH 1/2] added codeql workflow --- .github/workflows/codeql-analysis.yml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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 0000000000..be77170f0c --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,39 @@ +name: "CodeQL Analysis" + +on: + push: + branches: [master] + pull_request: + branches: [master] + 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 * * *' + +jobs: + CodeQL-Build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: javascript + + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 From eb7adfc1de12fa63c09c411902c652ad2ffb5c1f Mon Sep 17 00:00:00 2001 From: Aman Brar Date: Wed, 30 Dec 2020 15:53:12 -0500 Subject: [PATCH 2/2] only run daily cron and manual trigger --- .github/workflows/codeql-analysis.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index be77170f0c..10ad648c67 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,10 +1,6 @@ name: "CodeQL Analysis" on: - push: - branches: [master] - pull_request: - branches: [master] workflow_dispatch: schedule: # ┌───────────── minute (0 - 59)