2020-11-07 15:56:55 +08:00
|
|
|
name: Require “Allow Edits”
|
|
|
|
|
|
|
|
on: [pull_request_target]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
_:
|
2021-09-10 14:09:45 +08:00
|
|
|
permissions:
|
|
|
|
pull-requests: read
|
2020-11-07 15:56:55 +08:00
|
|
|
name: "Require “Allow Edits”"
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2021-11-22 23:20:50 +08:00
|
|
|
- name: Harden Runner
|
|
|
|
uses: step-security/harden-runner@v1
|
|
|
|
with:
|
|
|
|
allowed-endpoints:
|
|
|
|
api.github.com:443
|
2020-11-07 15:56:55 +08:00
|
|
|
- uses: ljharb/require-allow-edits@main
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|