From 7924a9f2a9b794957e37f0f8f048eee0146ccc22 Mon Sep 17 00:00:00 2001 From: "Harper, Jason M" Date: Thu, 24 Oct 2024 11:09:28 -0700 Subject: [PATCH] add codeql scan workflow --- .github/workflows/codeql.yml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..bc7e088 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,47 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '26 9 * * 3' + +permissions: + contents: read + +jobs: + analyze: + name: Analyze + runs-on: 'ubuntu-latest' + timeout-minutes: 360 + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Initialize CodeQL + uses: github/codeql-action/init@4759df8df70c5ebe7042c3029bbace20eee13edd # v2.23.1 + with: + languages: ${{ matrix.language }} + - name: + run: | + mkdir -p internal/script/resources + touch internal/script/resources/dummy + mkdir -p internal/common/resources + touch internal/common/resources/dummy + make + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@4759df8df70c5ebe7042c3029bbace20eee13edd # v2.23.1 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file