Skip to content

Commit 894215d

Browse files
Merge pull request #192 from superhighfives/fix/harden-github-actions
harden GitHub Actions security
2 parents 6ed6fff + 66eb56c commit 894215d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ on:
66
branches: [main]
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
name: Unit Tests
15+
if: >-
16+
github.event_name != 'pull_request'
17+
|| github.event.pull_request.head.repo.full_name == github.repository
1218
runs-on: macos-15
1319

1420
steps:

0 commit comments

Comments
 (0)