From c618b480168449eba562cd5c82137ff371aa61c1 Mon Sep 17 00:00:00 2001 From: Serious-senpai <57554044+Serious-senpai@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:12:51 +0700 Subject: [PATCH] Change workflow trigger events --- .github/workflows/deploy.yml | 1 + .github/workflows/tests.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 48d91a7..1d4dbc9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,7 @@ on: - main paths-ignore: - "**.md" + - "app/**" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 757a764..8e29aad 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,8 @@ on: branches: - main + pull_request_target: + permissions: contents: read @@ -27,6 +29,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + # IMPORTANT: Change settings in Actions/General to "Require approval for all outside collaborators". + # Before approving workflow from public forks, triple check the code. + ref: ${{ github.event.pull_request.head.sha }} - name: Setup Python uses: actions/setup-python@v5