ci: fix workflow secure in build.yml (#1644)

This commit is contained in:
Himself65 2023-03-21 08:46:31 -05:00 committed by GitHub
parent 6a0209dde2
commit 33320bd38e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,9 @@ name: Build & Test
on:
pull_request_target:
branches: [master]
types:
- labeled
- unlabeled
paths-ignore:
- '.husky'
- '.vscode'
@ -19,10 +22,13 @@ jobs:
build:
name: Build on Pull Request
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
environment: development
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
@ -148,6 +154,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js LTS
uses: actions/setup-node@v3
with: