GeezerVison is showing github.com — chore: re-sync the catalogue with devantler-tech/actions@df7fd4f · devantler-tech/.github@d5e7494
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +28Lines changed: 28 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +#!/usr/bin/env bash |
| 2 | +# The required dependency-review workflow may skip release-please's own pull requests, which |
| 3 | +# only bump versions and the changelog. A head branch name is chosen by whoever opens the pull |
| 4 | +# request, forks included, and the required-workflow rule reads a skipped run as passing, so the |
| 5 | +# skip must also require a head branch in this repository (devantler-tech/.github#264). |
| 6 | +set -euo pipefail |
| 7 | + |
| 8 | +workflow="${1:-.github/workflows/dependency-review.yaml}" |
| 9 | +fail() { |
| 10 | + echo "::error file=$workflow::$*" >&2 |
| 11 | + exit 1 |
| 12 | +} |
| 13 | + |
| 14 | +[[ -f "$workflow" ]] || fail "workflow not found" |
| 15 | +condition="$(yq -r '.jobs.dependency-review.if' "$workflow")" || fail "could not read the job condition" |
| 16 | +[[ -n "$condition" && "$condition" != null ]] || fail "the dependency-review job has no condition" |
| 17 | + |
| 18 | +# shellcheck disable=SC2016 # a GitHub expression, not a shell one |
| 19 | +expected='${{ (github.event_name == '"'"'pull_request'"'"' || github.event_name == '"'"'pull_request_target'"'"') && !(startsWith(github.head_ref, '"'"'release-please--'"'"') && github.event.pull_request.head.repo.full_name == github.repository) }}' |
| 20 | +[[ "$condition" == "$expected" ]] || |
| 21 | + fail "the dependency-review condition must skip only same-repository release-please pull requests; expected: $expected; found: $condition" |
| 22 | + |
| 23 | +# No other job may skip on the branch name alone. |
| 24 | +bare="$(yq -r '.jobs[].if // "" | select(test("startsWith\\(github\\.head_ref, .release-please--.\\)") and (test("head\\.repo\\.full_name == github\\.repository") | not))' "$workflow")" || |
| 25 | + fail "could not read the job conditions" |
| 26 | +[[ -z "$bare" ]] || fail "a job skips on a release-please branch name without requiring a same-repository head: $bare" |
| 27 | + |
| 28 | +echo "PASS: dependency review skips only same-repository release-please pull requests" |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yaml +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3114,6 +3114,10 @@ jobs: |
3114 | 3114 | shell: bash |
3115 | 3115 | run: bash .github/tests/test-zizmor-routing.sh |
3116 | 3116 |
|
| 3117 | + - name: 🛡️ Check dependency review only skips same-repository release pull requests |
| 3118 | + shell: bash |
| 3119 | + run: bash .github/tests/test-dependency-review-release-exemption.sh |
| 3120 | + |
3117 | 3121 | - name: 🔒 Check publish workflows require a SHA-pinned caller |
3118 | 3122 | shell: bash |
3119 | 3123 | run: bash .github/tests/test-publish-caller-pin.sh |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/dependency-review.yaml +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
62 | 62 | # reusable workflow safe to wire into a push-triggered CI without breaking it. |
63 | 63 | # Also skip release-please PRs (head branch `release-please--*`): they only bump versions + |
64 | 64 | # the changelog (no dependency changes to review). A skipped run still |
65 | | - # satisfies the required-workflow rule (skipped → green). |
66 | | - if: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && !startsWith(github.head_ref, 'release-please--') }} |
| 65 | + # satisfies the required-workflow rule (skipped → green), and a branch name is chosen by |
| 66 | + # whoever opens the pull request, so the skip also requires a head branch in this |
| 67 | + # repository: a fork pull request is always reviewed (devantler-tech/.github#264). |
| 68 | + if: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && !(startsWith(github.head_ref, 'release-please--') && github.event.pull_request.head.repo.full_name == github.repository) }} |
67 | 69 | permissions: |
68 | 70 | contents: read # read the dependency graph / diff base..head |
69 | 71 | steps: |
|
Collapse file
Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -devantler-tech/actions@75c65b74547587f0aff50ffadc522efb8a6b1c46 |
| 1 | +devantler-tech/actions@df7fd4f83edade31c121a9de563d9a7b9b1f900d |
Collapse file
Copy file name to clipboardExpand all lines: actions/CHANGELOG.md +7Lines changed: 7 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [13.10.3](https://github.com/devantler-tech/actions/compare/v13.10.2...v13.10.3) (2026-09-25) |
| 4 | + |
| 5 | + |
| 6 | +### Bug Fixes |
| 7 | + |
| 8 | +* **dependency-review:** only skip same-repository release pull requests ([#1387](https://github.com/devantler-tech/actions/issues/1387)) ([ffc1e24](https://github.com/devantler-tech/actions/commit/ffc1e2403519922e0f3dfd22bea0bd0a5b5d9b62)) |
| 9 | + |
3 | 10 | ## [13.10.2](https://github.com/devantler-tech/actions/compare/v13.10.1...v13.10.2) (2026-09-25) |
4 | 11 |
|
5 | 12 |
|
|