Skip to content

Commit

Permalink
Merge pull request #34 from jsoref/permissions-contents-read
Browse files Browse the repository at this point in the history
Restrict github permissions for workflow
  • Loading branch information
rchakode authored Jul 30, 2023
2 parents 2024c5e + 5bde554 commit 332f6bf
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 332f6bf

Please sign in to comment.