Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Add permissions block to top workflow level
Browse files Browse the repository at this point in the history
Signed-off-by: temenuzhka-thede <[email protected]>

specify go version

Signed-off-by: temenuzhka-thede <[email protected]>
  • Loading branch information
temenuzhka-thede committed Oct 27, 2023
1 parent 5eca716 commit ee000ac
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@ on:
- '**/*.yml'
- '**/*_test.go'

permissions:
actions: read
contents: read
security-events: write

env:
GO_VERSION: 1.19

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

strategy:
fail-fast: false
matrix:
language: [go]
language:
- go

steps:
-
Expand All @@ -42,8 +46,8 @@ jobs:
name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
go-version: ${{ env.GO_VERSION }}
cache: true
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down

0 comments on commit ee000ac

Please sign in to comment.