summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-03-14 07:37:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2023-03-14 07:53:43 -0400
commitdc83ac55bd58a0531b71b851ac0a7d217bfc1f83 (patch)
treeff0508a866d28f448bcad6faa7f2d634c55f1601
parent9e94ddb8d30b0f052532edf942bbde803eb2c347 (diff)
downloadpython-coveragepy-git-dc83ac55bd58a0531b71b851ac0a7d217bfc1f83.tar.gz
build: run dependency check on pushes, for more action uniformity
-rw-r--r--.github/workflows/dependency-review.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml
index 34b14c39..d10f1622 100644
--- a/.github/workflows/dependency-review.yml
+++ b/.github/workflows/dependency-review.yml
@@ -4,8 +4,15 @@
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
+
name: 'Dependency Review'
-on: [pull_request]
+on:
+ push:
+ branches:
+ - master
+ - nedbat/*
+ pull_request:
+ workflow_dispatch:
permissions:
contents: read
@@ -18,3 +25,6 @@ jobs:
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
+ with:
+ base-ref: ${{ github.event.pull_request.base.ref || 'master' }}
+ head-ref: ${{ github.event.pull_request.head.ref || github.ref }}