mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Check permissions for workflows (#12181)
This commit is contained in:
parent
9988dd67e2
commit
a55ce2977f
3 changed files with 17 additions and 3 deletions
7
.github/workflows/benchmark.yml
vendored
7
.github/workflows/benchmark.yml
vendored
|
@ -20,6 +20,13 @@ jobs:
|
|||
PR-BENCH: ${{ steps.benchmark-pr.outputs.BENCH_RESULT }}
|
||||
MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }}
|
||||
steps:
|
||||
- name: Check if user has write access
|
||||
uses: lannonbr/repo-permission-check-action@2.0.2
|
||||
with:
|
||||
permission: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# https://github.com/actions/checkout/issues/331#issuecomment-1438220926
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
7
.github/workflows/preview-comment.yml
vendored
7
.github/workflows/preview-comment.yml
vendored
|
@ -13,6 +13,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check if user has write access
|
||||
uses: lannonbr/repo-permission-check-action@2.0.2
|
||||
with:
|
||||
permission: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- run: |
|
||||
gh issue edit ${{ github.event.issue.number }} --add-label "pr: preview" --repo ${{ github.repository }}
|
||||
env:
|
||||
|
|
6
.github/workflows/snapshot-release.yml
vendored
6
.github/workflows/snapshot-release.yml
vendored
|
@ -25,10 +25,10 @@ jobs:
|
|||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: "Check if user has write access"
|
||||
uses: "lannonbr/repo-permission-check-action@2.0.2"
|
||||
- name: Check if user has write access
|
||||
uses: lannonbr/repo-permission-check-action@2.0.2
|
||||
with:
|
||||
permission: "write"
|
||||
permission: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue