-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.13 KB
/
Copy pathpatchgate-shadow.yml
File metadata and controls
47 lines (40 loc) · 1.13 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
44
45
46
47
name: PatchGate Shadow
on:
pull_request_target:
types: [opened, synchronize, reopened]
merge_group:
types: [checks_requested]
concurrency:
group: patchgate-shadow-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
checks: write
actions: read
pull-requests: read
contents: read
jobs:
evaluate:
name: PatchGate Review-Readiness Shadow Gate
runs-on: ubuntu-latest
steps:
- name: Checkout trusted base repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.base_ref }}
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies & Build
run: |
npm ci
npm run build
npm run bundle:action
- name: Run PatchGate in Shadow Mode
uses: ./
with:
fail-on: never
create-check-run: true
github-token: ${{ github.token }}