Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/workflows/build-check-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ on:
description: 'GoReleaser version to run'
required: false
type: string
# renovate: datasource=github-releases depName=goreleaser/goreleaser
default: 'v2.18.2'
build-deps:
description: 'Space-separated apt packages to install before building (e.g. "gcc-aarch64-linux-gnu libc6-dev-arm64-cross")'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-release-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ on:
description: 'GoReleaser version to run'
required: false
type: string
# renovate: datasource=github-releases depName=goreleaser/goreleaser
default: 'v2.18.2'
build-deps:
description: 'Space-separated apt packages to install before building (e.g. "gcc-aarch64-linux-gnu libc6-dev-arm64-cross")'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
persist-credentials: false
- uses: raven-actions/actionlint@3d39aea434753780c3b3d4a1a31c854b4dbf49d7 # v2.2.0
with:
# renovate: datasource=github-releases depName=rhysd/actionlint
version: 'v1.7.12'
flags: -color

zizmor:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ on:
description: 'golangci-lint release to run'
required: false
type: string
default: 'latest'
# renovate: datasource=github-releases depName=golangci/golangci-lint
default: 'v2.14.0'
runner:
description: 'Runner for the golangci-lint job (default: ubuntu-slim)'
required: false
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/lint-makefile-common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SPDX-FileCopyrightText: © 2026 OpenCHAMI a Series of LF Projects, LLC
# SPDX-License-Identifier: MIT

name: lint-makefile-common

# Reusable workflow that fails when the caller's vendored Makefile.common
# differs from the canonical copy in the latest release of
# OpenCHAMI/github-actions.

on:
workflow_call:

permissions:
contents: read # checkout; read the canonical file

jobs:
lint-makefile-common:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Compare Makefile.common with the latest release
env:
GH_TOKEN: ${{ github.token }}
SOURCE_REPO: OpenCHAMI/github-actions
run: |
set -euo pipefail
if [[ ! -f Makefile.common ]]; then
echo "::error file=Makefile.common::No Makefile.common in this repository. Copy it from https://github.com/${SOURCE_REPO}/releases/latest."
exit 1
fi
# /releases/latest excludes drafts and prereleases.
tag=$(gh api "repos/${SOURCE_REPO}/releases/latest" --jq .tag_name)
sha=$(gh api "repos/${SOURCE_REPO}/commits/${tag}" --jq .sha)
canonical="${RUNNER_TEMP}/Makefile.common"
if ! gh api -H "Accept: application/vnd.github.raw" \
"repos/${SOURCE_REPO}/contents/Makefile.common?ref=${sha}" > "$canonical" 2> "${RUNNER_TEMP}/err"; then
if grep -q "HTTP 404" "${RUNNER_TEMP}/err"; then
echo "::error::No Makefile.common in ${SOURCE_REPO} release ${tag} (${sha})."
else
cat "${RUNNER_TEMP}/err" >&2
echo "::error::Couldn't read Makefile.common from ${SOURCE_REPO} release ${tag} (${sha})."
fi
exit 1
fi
if ! diff -u --label "${SOURCE_REPO}@${tag} (${sha})" --label "Makefile.common" "$canonical" Makefile.common; then
echo "::error file=Makefile.common::Makefile.common differs from ${SOURCE_REPO} release ${tag} (${sha}). Replace it with that copy."
exit 1
fi
echo "Makefile.common matches ${SOURCE_REPO} release ${tag} (${sha})."
1 change: 1 addition & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
reuse-version:
type: string
required: false
# renovate: datasource=pypi depName=reuse
default: '6.2.0'
description: 'Reuse CLI version to use (e.g. "6.2.0").'

Expand Down
Loading