Skip to content

Commit

Permalink
Add read permissions to GitHub workflow files
Browse files Browse the repository at this point in the history
This commit adds read permissions for 'contents' in the GitHub workflow files sonarqube.yml and reuse.yml. This allows these specific workflows to access the relevant contents they need for execution.
  • Loading branch information
wneessen committed Mar 23, 2024
1 parent 976adc5 commit c78388a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: REUSE Compliance Check

on: [push, pull_request]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# SPDX-License-Identifier: CC0-1.0

name: SonarQube

permissions:
contents: read

on:
push:
branches:
Expand Down

0 comments on commit c78388a

Please sign in to comment.