Create .github/workflows/codeql.yml

This commit is contained in:
Ole Morud
2023-03-21 11:37:40 +01:00
committed by GitHub
parent a0e37e6c0f
commit 3aaa57601d

39
.github/workflows/codeql.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: "CodeQL Analysis"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '* 6 * * *'
workflow_dispatch:
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
- uses: github/codeql-action/init@v2
with:
languages: go
- uses: github/codeql-action/autobuild@v2
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- uses: github/codeql-action/analyze@v2
with:
category: "/language:go"