Skip to content

Commit

Permalink
ci: switch to pull_request_target so forks pass
Browse files Browse the repository at this point in the history
We comment on our PRs so we need to ensure pull requests from forks work
so switch to PR targets and set permissions.
  • Loading branch information
cardoe committed Sep 4, 2024
1 parent 3c04116 commit bea05c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/code-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "python/ironic-understack/**"
- "python/understack-workflows/**"
- ".github/workflows/code-test.yaml"
pull_request:
pull_request_target:
paths:
- "python/ironic-understack/**"
- "python/understack-workflows/**"
Expand All @@ -17,6 +17,10 @@ on:

jobs:
python:
permissions:
contents: read
pull-requests: read

runs-on: ubuntu-latest

strategy:
Expand Down

0 comments on commit bea05c7

Please sign in to comment.