Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,28 @@ jobs:
dt="${DEP_TYPE}"
alert="${ALERT_STATE}"

eligible=false
reason=""

# Dependabot reports an empty update-type for SHA-pinned Actions bumps
# (for example dtolnay/rust-toolchain@v1 moved to a newer commit). That
# is a pin refresh inside the same major, not a breaking change.
if [ -z "$ut" ] && { [ "$eco" = "github-actions" ] || [ "$eco" = "github_actions" ]; }; then
eligible=true
reason="github-actions-pin-refresh"
fi

case "$ut" in
version-update:semver-patch|version-update:semver-minor) ;;
"")
if [ "$eligible" != true ]; then
echo "unclassified non-Actions update requires manual review"
exit 0
fi
;;
*) echo "major or unclassified updates require manual review"; exit 0 ;;
esac

eligible=false
reason=""

# Eligible non-major security updates bypass cooldown.
if [ "$alert" = "OPEN" ] || [ "$alert" = "FIXED" ]; then
eligible=true
Expand Down
Loading