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]>

move back per issions block

Signed-off-by: temenuzhka-thede <[email protected]>
  • Loading branch information
temenuzhka-thede committed Oct 27, 2023
1 parent 5eca716 commit 2d5d14d
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,27 @@ 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'
strategy:
fail-fast: false
matrix:
language:
- go
permissions:
actions: read
contents: read
security-events: write

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

steps:
-
Expand All @@ -42,8 +50,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 2d5d14d

Please sign in to comment.