From 77feda002e35e7544256b0c69a4e3dd00b6ef918 Mon Sep 17 00:00:00 2001 From: Oleg Balunenko Date: Fri, 1 Dec 2023 16:59:57 +0400 Subject: [PATCH] chore: Fix codeql workflow --- .github/workflows/codeql-analysis.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c1cc8f2c..b27f349a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,22 +23,32 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} permissions: actions: read contents: read security-events: write - strategy: fail-fast: true matrix: - language: [ 'go' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Learn more about CodeQL language support at https://git.io/codeql-language-support - + language: [ 'go' ] + os: [ 'ubuntu-22.04' ] + go-version: [1.21] steps: - - name: Checkout repository + - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up go + uses: actions/setup-go@v4.1.0 + with: + go-version: ${{ matrix.go-version }} + - run: | + go version + shell: bash # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL