Skip to content

Commit

Permalink
read-only permissions for GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Feb 26, 2024
1 parent 61b85f9 commit 6bee838
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: [push]

permissions: read-all

jobs:
hello_world_job:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
on:
pull_request:

permissions: read-all

jobs:
pr_container_job:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6bee838

Please sign in to comment.