Skip to content

Commit

Permalink
permissions!
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen committed Feb 13, 2024
1 parent 86a195d commit bba8110
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ on:
default: false
type: bool

permissions:
actions: read
contents: read
env:
if: inputs.codeql
security-events: write # For CodeQL
security-events-permissions: write
if: "!${{ inputs.codeql }}"
security-events-permissions: none

jobs:
build:
Expand All @@ -57,7 +57,7 @@ jobs:
permissions:
actions: read
contents: read
security-events: write # For CodeQL
security-events: ${{ vars.security-events-permissions }}
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
Expand All @@ -66,7 +66,7 @@ jobs:
submodules: recursive
ref: ${{ inputs.ref }}
- name: Initialize CodeQL
if: ${{ github.event_name == 'schedule' }}
if: inputs.codeql
uses: github/codeql-action/init@v3
with:
languages: c-cpp
Expand Down

0 comments on commit bba8110

Please sign in to comment.