Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/actions/build-antora-site/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ inputs:
antora-version:
description: "@antora/cli and @antora/site-generator version."
required: false
# renovate: datasource=npm depName=@antora/cli
default: "3.1.14"
kroki-version:
description: "asciidoctor-kroki version."
required: false
# renovate: datasource=npm depName=asciidoctor-kroki
default: "0.18.1"
playbook:
description: "Path to the Antora playbook."
Expand Down
13 changes: 12 additions & 1 deletion .github/actions/setup-git-cliff/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ inputs:
version:
description: "git-cliff version, without the leading v."
required: false
# renovate: datasource=github-releases depName=orhun/git-cliff
default: "2.13.1"
sha256:
description: "SHA-256 of the x86_64-unknown-linux-gnu tarball. Change with `version`."
Expand All @@ -28,7 +29,17 @@ runs:
TARBALL="$(mktemp -d)/git-cliff.tar.gz"
curl -fsSL -o "$TARBALL" \
"https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
echo "${GIT_CLIFF_SHA256} ${TARBALL}" | sha256sum -c -
# Spelled out rather than `sha256sum -c`, because Renovate can bump the
# version but cannot compute the new digest -- so this failure is the
# expected outcome of a version bump, and it should say what to paste.
ACTUAL="$(sha256sum "$TARBALL" | cut -d" " -f1)"
if [ "$ACTUAL" != "$GIT_CLIFF_SHA256" ]; then
echo "::error::git-cliff ${GIT_CLIFF_VERSION} checksum mismatch."
echo "::error:: expected: ${GIT_CLIFF_SHA256}"
echo "::error:: actual: ${ACTUAL}"
echo "::error::If you are bumping the version, set the sha256 input default to the actual value above."
exit 1
fi
# /usr/local/bin is on PATH and runner-writable, so no sudo and no
# $GITHUB_PATH write (zizmor flags the latter).
tar -xzf "$TARBALL" --strip-components=1 -C /usr/local/bin \
Expand Down
28 changes: 28 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@

osvVulnerabilityAlerts: true,

// Tool versions pinned inside workflows and composite actions are invisible to
// every built-in manager -- there is no manifest for them -- so they sat frozen
// while everything with a package file kept moving. The `# renovate:` comment
// above each one is what makes it a tracked dependency.
//
// Not the customManagers:githubActionsVersions preset: that requires the value
// to sit on a `SOMETHING_VERSION:` key, and these are action-input `default:`s.
customManagers: [
{
customType: "regex",
managerFilePatterns: [
"/^\\.github/actions/.+/action\\.ya?ml$/",
"/^\\.github/workflows/.+\\.ya?ml$/",
],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>\\S+)\\s+default: \"(?<currentValue>[^\"]+)\"",
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>\\S+)\\s+VERSION=\"(?<currentValue>[^\"]+)\"",
],
},
],

packageRules: [

// =====================================================
Expand All @@ -60,6 +81,13 @@
allowedVersions: "<=21",
},

{
// asciidoctor-kroki 1.x is not compatible with Antora, which is the only
// thing that uses it here. Lift when Antora supports it.
matchDepNames: ["asciidoctor-kroki"],
allowedVersions: "<1",
},

// =====================================================
// Version classification labels
// =====================================================
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

- name: Install actionlint
run: |
# renovate: datasource=github-releases depName=rhysd/actionlint
VERSION="1.7.7"
curl -fsSL \
"https://github.com/rhysd/actionlint/releases/download/v${VERSION}/actionlint_${VERSION}_linux_amd64.tar.gz" \
Expand Down
Loading