Skip to content

Commit 9481c08

Browse files
committed
Exit early if user has no write access to repo
1 parent 6e32d95 commit 9481c08

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/process_metadata.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ jobs:
4141

4242
# Define the sequence of job steps...
4343
steps:
44+
# Exit if the user does not have write access to the repository:
45+
- name: 'Exit if user does not have write access'
46+
uses: lannonbr/repo-permission-check-action@2.0.0
47+
with:
48+
permission: 'write'
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
4452
# Checkout the repository:
4553
- name: 'Checkout repository'
4654
uses: actions/checkout@v3

0 commit comments

Comments
 (0)