Skip to content

Commit

Permalink
CI: Another PR workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 12, 2024
1 parent 21a354c commit 186d5e0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/dev-build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
name: Dev Build PR
on: [pull_request, workflow_dispatch]
on: [pull_request_target, workflow_dispatch]
env:
BUILD_TYPE: Release
permissions:
contents: read
pull-requests: read
jobs:
dev-release:
runs-on: windows-latest

# Minimal permissions for this pull_request_target action
# Because we only need to read the repository contents
# By default, pull_request_target grants read/write permissions (not good)
# But it also passes along repository secrets, which we need
# unlike pull_request, which does not pass secrets
permissions:
contents: read
pull-requests: read

strategy:
matrix:
target: [uevr]
Expand Down

0 comments on commit 186d5e0

Please sign in to comment.