diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-09-30 21:18:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 21:18:35 +0100 |
commit | fed3ebd2f14c70364f45128b387efe1ff9a5ee2f (patch) | |
tree | 6d007d40b79dee19d7f2e83eb87ce0c7f8f47221 /.github/workflows | |
parent | 0caad67abcc55b6d0812bede8bdfa853aafb5316 (diff) |
CodeQL analysis
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 00000000..a4ef8b39 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,34 @@ +name: "CodeQL" + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + language: ['go'] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 |