From a3ee97342a714de1a6ff7675f276489921d3b3b9 Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Tue, 26 Mar 2024 15:30:52 -0700 Subject: [PATCH] Add CodeQL workflow --- .github/workflows/codeql.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..f0fdd34 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,36 @@ +name: "CodeQL" + +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" + schedule: + - cron: 44 11 * * 0 + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-22.04 + timeout-minutes: 360 + permissions: + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: go + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: /language:go \ No newline at end of file