@balena/pinejs 14.53.2 → 14.53.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,17 +3,19 @@ name: Flowzone
3
3
  on:
4
4
  pull_request:
5
5
  types: [opened, synchronize, closed]
6
- branches:
7
- - "main"
8
- - "master"
6
+ branches: [main, master]
7
+ # allow external contributions to use secrets within trusted code
8
+ pull_request_target:
9
+ types: [opened, synchronize, closed]
10
+ branches: [main, master]
9
11
 
10
12
  jobs:
11
13
  flowzone:
12
14
  name: Flowzone
13
15
  uses: product-os/flowzone/.github/workflows/flowzone.yml@master
14
- secrets:
15
- FLOWZONE_TOKEN: ${{ secrets.FLOWZONE_TOKEN }}
16
- GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
17
- GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
18
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19
- BALENA_API_KEY: ${{ secrets.BALENA_API_KEY }}
16
+ # prevent duplicate workflows and only allow one `pull_request` or `pull_request_target` for
17
+ # internal or external contributions respectively
18
+ if: |
19
+ (github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request') ||
20
+ (github.event.pull_request.head.repo.full_name != github.repository && github.event_name == 'pull_request_target')
21
+ secrets: inherit