mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(ci): provide necessary permissions for calling workflow
Also error on the side of security adding an extra check on the automatic PR step.
This commit is contained in:
parent
0c02e8a62b
commit
b55e65980a
3
.github/workflows/api-docs-check.yml
vendored
3
.github/workflows/api-docs-check.yml
vendored
@ -12,6 +12,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
call-regen-api-docs:
|
call-regen-api-docs:
|
||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
uses: ./.github/workflows/api-docs.yml
|
uses: ./.github/workflows/api-docs.yml
|
||||||
with:
|
with:
|
||||||
check_only: true
|
check_only: true
|
||||||
|
2
.github/workflows/api-docs.yml
vendored
2
.github/workflows/api-docs.yml
vendored
@ -60,7 +60,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
- name: Automatic PR
|
- name: Automatic PR
|
||||||
if: ${{ steps.docs.outputs.UPDATED_DOCS != 0 }}
|
if: ${{ steps.docs.outputs.UPDATED_DOCS != 0 && !inputs.check_only }}
|
||||||
run: |
|
run: |
|
||||||
git add -u
|
git add -u
|
||||||
git commit -m 'docs: regenerate [skip ci]'
|
git commit -m 'docs: regenerate [skip ci]'
|
||||||
|
Loading…
Reference in New Issue
Block a user