From 3aaa57601d0d0c7a5b9052124439c767438df3ef Mon Sep 17 00:00:00 2001 From: Ole Morud <82065181+olemorud@users.noreply.github.com> Date: Tue, 21 Mar 2023 11:37:40 +0100 Subject: [PATCH] Create .github/workflows/codeql.yml --- .github/workflows/codeql.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..1406a5d --- /dev/null +++ b/.github/workflows/codeql.yml @@ -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"