mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25: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:
parent
69e2e36a64
commit
44976bd199
1 changed files with 1 additions and 4 deletions
5
.github/workflows/deploy-preview.yml
vendored
5
.github/workflows/deploy-preview.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue