-
Notifications
You must be signed in to change notification settings - Fork 92
43 lines (38 loc) · 1.03 KB
/
build-target.yml
File metadata and controls
43 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This workflow runs all pull requests through the target branch context so that secrets are
# available for signing artifacts. The check-run gate ensures that fork PRs are reviewed before
# any untrusted code is allowed to run with access to repository secrets.
name: Build on PR Target
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches:
- main
paths:
- 'src/**'
- 'src-cli/**'
- 'jslib/**'
- 'resources/**'
- 'scripts/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- 'angular.json'
- '.github/workflows/build.yml'
- '.github/workflows/build-target.yml'
- '!*.md'
- '!*.txt'
permissions: {}
jobs:
check-run:
name: Check PR run
uses: bitwarden/gh-actions/.github/workflows/check-run.yml@main
permissions:
contents: read
run-workflow:
name: Run Build
needs: check-run
uses: ./.github/workflows/build.yml
secrets: inherit
permissions:
contents: read
id-token: write