From 9e290fb6f50f527ac99dce392df64b0c1e9ba5ce Mon Sep 17 00:00:00 2001 From: Osama Magdy <59124937+osamamagdy@users.noreply.github.com> Date: Wed, 4 May 2022 10:38:51 -0700 Subject: [PATCH] refactor: enable codeql alerts --- .github/workflows/codeql-analysis.yml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 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 0000000..777206c --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,40 @@ +name: "CodeQL" + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + # At 23:30 on Sunday + - cron: '30 23 * * 0' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - run: | + make linux + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2