Skip to content

Commit

Permalink
Restrict github permissions for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Jul 30, 2023
1 parent 2024c5e commit 5bde554
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-image-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

jobs:
build:
permissions:
contents: read

concurrency:
group: image-pr-${{ github.event.pull_request.number }}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

jobs:
build:
permissions:
contents: read

concurrency:
group: image-${{ github.ref }}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
build:
permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}

Expand Down

0 comments on commit 5bde554

Please sign in to comment.