Skip to content

Commit

Permalink
Merge pull request #400 from jigpu/action-permissions
Browse files Browse the repository at this point in the history
github: Minimize permissions granted to automated workflows / jobs
  • Loading branch information
Pinglinux authored Nov 30, 2023
2 parents d212d14 + 0e060fb commit 8f49546
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/checkpatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
- '3.17/**'
- '4.5/**'

permissions:
contents: read

jobs:
checkpatch:
runs-on: ubuntu-20.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on: [ push, pull_request ]

permissions:
contents: read

env:
COMPILE_CFLAGS: -Werror
PREPARE_CFLAGS:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ on:
tags:
- "v*"

permissions:
contents: read

jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
permissions:
contents: write

steps:
# ...
Expand Down

0 comments on commit 8f49546

Please sign in to comment.