fix a few more CI issues
This commit is contained in:
parent
a603b8e7d3
commit
a5a20ac075
8
.github/workflows/close-incorrect-issue.yml
vendored
8
.github/workflows/close-incorrect-issue.yml
vendored
@ -3,10 +3,13 @@ name: Close Incorrect Issue
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
close-incorrect-issue:
|
||||
runs-on: ${{ matrix.os }}
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
@ -22,4 +25,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: node extra/close-incorrect-issue.js ${{ secrets.GITHUB_TOKEN }} ${{ github.event.issue.number }} ${{ github.event.issue.user.login }}
|
||||
- name: Close incorrect issue
|
||||
run: node extra/close-incorrect-issue.js ${{ secrets.GITHUB_TOKEN }} ${{ github.event.issue.number }} "$ISSUE_USER_LOGIN"
|
||||
env:
|
||||
ISSUE_USER_LOGIN: ${{ github.event.issue.user.login }}
|
||||
|
||||
7
.github/workflows/conflict_labeler.yml
vendored
7
.github/workflows/conflict_labeler.yml
vendored
@ -1,6 +1,11 @@
|
||||
name: Merge Conflict Labeler
|
||||
|
||||
on:
|
||||
# pull_request_target is safe here because:
|
||||
# 1. Only uses a pinned trusted action (by SHA)
|
||||
# 2. Has minimal permissions (contents: read, pull-requests: write)
|
||||
# 3. Doesn't checkout or execute any untrusted code from PRs
|
||||
# 4. Only adds/removes labels based on merge conflict status
|
||||
on: # zizmor: ignore[dangerous-triggers]
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
7
.github/workflows/prevent-file-change.yml
vendored
7
.github/workflows/prevent-file-change.yml
vendored
@ -1,6 +1,11 @@
|
||||
name: prevent-file-change
|
||||
|
||||
on:
|
||||
# pull_request_target is safe here because:
|
||||
# 1. Only uses a pinned trusted action (by SHA)
|
||||
# 2. Has minimal permissions (pull-requests: read)
|
||||
# 3. Doesn't checkout or execute any untrusted code from PRs
|
||||
# 4. Only validates that language files (except en.json) aren't modified
|
||||
on: # zizmor: ignore[dangerous-triggers]
|
||||
pull_request_target:
|
||||
permissions: {}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user