From afd7f3781ec526c3e4a54a95b4d28e78bd158dee Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 29 Sep 2022 09:35:16 -0700 Subject: [PATCH 1/2] refactor: run security on package.json changes --- .github/workflows/security.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml index a0d2f1813c6f..1d2b37cb0589 100644 --- a/.github/workflows/security.yaml +++ b/.github/workflows/security.yaml @@ -4,8 +4,8 @@ on: push: branches: [main] pull_request: - # The branches below must be a subset of the branches above - branches: [main] + paths: + - "package.json" schedule: # Runs every Monday morning PST - cron: "17 15 * * 1" From c75eef710b4afcb4a93a0a578c65c1408c99071a Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 29 Sep 2022 11:08:35 -0700 Subject: [PATCH 2/2] fixup: add to main push too --- .github/workflows/security.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml index 1d2b37cb0589..1e0832a24e5c 100644 --- a/.github/workflows/security.yaml +++ b/.github/workflows/security.yaml @@ -3,6 +3,8 @@ name: Security on: push: branches: [main] + paths: + - "package.json" pull_request: paths: - "package.json"