Skip to content

Commit

Permalink
Merge pull request #300 from buildtool/codeql
Browse files Browse the repository at this point in the history
chore: add CodeQL action
  • Loading branch information
peter-svensson authored Oct 10, 2022
2 parents 9343c09 + 673c912 commit fcf2d52
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'go'

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:go"

0 comments on commit fcf2d52

Please sign in to comment.