From 7906a5a6c01706c038f4ce56b1f4ca135affa190 Mon Sep 17 00:00:00 2001 From: Justin Abrahms Date: Sun, 2 Oct 2022 23:18:22 -0700 Subject: [PATCH] add SAST scanning Refs #84 Signed-off-by: Justin Abrahms --- .github/workflows/static-code-scanning.yaml | 43 +++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/static-code-scanning.yaml diff --git a/.github/workflows/static-code-scanning.yaml b/.github/workflows/static-code-scanning.yaml new file mode 100644 index 000000000..c2133819c --- /dev/null +++ b/.github/workflows/static-code-scanning.yaml @@ -0,0 +1,43 @@ +name: "Code Scanning - Action" + +# Docs for this at https://github.com/github/codeql-action#usage + +on: + push: + branches: [main] + pull_request: + branches: [main] + 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 * * 1' + +jobs: + CodeQL-Build: + # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest + runs-on: ubuntu-latest + + permissions: + # required for all workflows + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2