Skip to content

Commit 29b7c99

Browse files
Merge commit from fork
* Fix GHSA-5ch6-j583-2m8v * Fix review comments * Update .github/workflows/netlify.yml Co-authored-by: Nils Reichardt <me@nils.re> * Update .github/workflows/netlify.yml Co-authored-by: Nils Reichardt <me@nils.re> * Update .github/workflows/netlify.yml Co-authored-by: Nils Reichardt <me@nils.re> --------- Co-authored-by: Nils Reichardt <me@nils.re>
1 parent 3eb0a2a commit 29b7c99

2 files changed

Lines changed: 12 additions & 24 deletions

File tree

.github/workflows/junie.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/netlify.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
name: Build and Deploy to Netlify
22
on:
33
pull_request_target:
4+
types: [ opened, synchronize, reopened, labeled ]
45
jobs:
56
build:
67
runs-on: "ubuntu-22.04"
7-
if: github.repository_owner == 'ThePHPF'
8+
permissions:
9+
contents: read
10+
pull-requests: write # Required when require-reapproval=true
11+
if: "github.repository_owner == 'ThePHPF'"
812
steps:
13+
# Check the gate and reset it on every workflow run
14+
- name: Ensure PR has "safe to preview" label, if PR is from a fork
15+
uses: nilsreichardt/verify-safe-to-test-label@a65b1d76a873fe060b8ece697f238ef8805e6e23
16+
with:
17+
label: "safe to preview"
18+
require-reapproval: true
19+
920
- uses: actions/checkout@v4
1021
with:
1122
ref: "refs/pull/${{ github.event.number }}/merge"

0 commit comments

Comments
 (0)