0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

chore: fix workflow (#1772)

This commit is contained in:
Gao Sun 2022-08-12 23:29:19 +08:00 committed by GitHub
parent 6a2e604926
commit 65d579f50d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 11 deletions

View file

@ -3,6 +3,9 @@ name: Update Metadata
on:
pull_request:
types: [opened, edited, synchronize, reopened]
# CAREFUL! https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
pull_request_target:
types: [opened, edited, synchronize, reopened]
concurrency:
group: update-metadata-${{ github.ref }}
@ -12,10 +15,6 @@ jobs:
update-metadata:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Add labels
uses: silverhand-io/actions-add-labels-run-steps@v1.1.2
@ -36,14 +35,11 @@ jobs:
pr-size-diff:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Prepare
run: |

View file

@ -15,9 +15,8 @@ jobs:
# avoid out of memory issue since macOS has bigger memory
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
runs-on: macos-latest
permissions:
checks: write
# fork repos need to opt out
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v3