From 40933a31303251bef38ac18c7c5b35049f4518c1 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Mon, 31 Jan 2022 12:51:22 -0500 Subject: [PATCH] Enable CodeQL static code analysis --- .github/workflows/codeql-analysis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 000000000..4a82240db --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,25 @@ +name: Analyze + +on: + workflow_dispatch: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + # We must fetch at least the immediate parents so that if this is + # a pull request then we can checkout the head. + fetch-depth: 2 + + - uses: github/codeql-action/init@v1 + with: + languages: go + - uses: github/codeql-action/autobuild@v1 + - uses: github/codeql-action/analyze@v1