Skip to content

Commit

Permalink
- adds missing permissions to codeql workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
baywet committed Feb 5, 2024
1 parent d554f40 commit 5f4cfe1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ name: Build and Test
on:
workflow_dispatch:
push:
branches: [ 'main', 'dev', 'feature/*' ]
branches: ["main", "dev", "feature/*"]
pull_request:
branches: [ 'main', 'dev' ]
branches: ["main", "dev"]

permissions:
contents: read #those permissions are required to run the codeql analysis
actions: read
security-events: write

jobs:
build-and-test:
Expand All @@ -17,7 +22,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x
dotnet-version: 8.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand All @@ -29,4 +34,4 @@ jobs:
- name: Test
run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Debug /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v3

0 comments on commit 5f4cfe1

Please sign in to comment.