5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 06:00:28 +00:00

Move CodeQL into main CI workflow

This commit is contained in:
Neil Alexander 2022-04-18 10:33:33 +01:00
parent 55f7874b35
commit c3de1542b0
2 changed files with 29 additions and 41 deletions

View File

@ -24,6 +24,34 @@ jobs:
with: with:
args: --issues-exit-code=1 args: --issues-exit-code=1
codeql:
name: Analyse
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["go"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
build-linux: build-linux:
strategy: strategy:
fail-fast: false fail-fast: false
@ -98,7 +126,7 @@ jobs:
tests-ok: tests-ok:
name: All tests passed name: All tests passed
needs: [build-linux, build-windows, build-macos] needs: [lint, codeql, build-linux, build-windows, build-macos]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
steps: steps:

View File

@ -1,40 +0,0 @@
name: "CodeQL"
on:
push:
branches: [develop, future, master]
pull_request:
branches: [develop, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["go"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2