1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00

Update Deploy Preview to use pull_request_target

Access to secrets is not possible with PR from fork. 

Caution will need to be had around allowing commits to this yml file in the future.

Not that secrets should not be available to code itself (actions with params only).
This commit is contained in:
Jay Blackman 2025-05-02 08:51:04 +10:00 committed by GitHub
parent 69e2e36a64
commit 44976bd199
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
name: 'Preview Deployment'
on:
pull_request:
pull_request_target:
branches:
- master
@ -35,9 +35,6 @@ jobs:
- name: Deploy to Cloudflare
id: deploy
uses: cloudflare/wrangler-action@v3
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}