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
Empty file modified .github/scripts/verify-vendored-comment-scan.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions: {}

jobs:
go-validation:
uses: devantler-tech/.github/.github/workflows/validate-go-project.yaml@e6db1a4ed5b23ce6f69e755deeddd6649313e9dc # v20.1.12
uses: devantler-tech/.github/.github/workflows/validate-go-project.yaml@1a0eb6f18b88a7816b91cbf692b8ad8ea9a08123 # v20.1.17
permissions:
contents: read
pull-requests: write # lint summaries; no branch-writing token on candidate runners
Expand Down
3 changes: 2 additions & 1 deletion scripts/go-floor.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ version_output=$(printf '%s\n' "$go_line") || {
echo "FAIL: could not prepare the Go version for validation" >&2
exit 1
}
if ! grep -qE '^[0-9]+\.[0-9]+(\.[0-9]+)?$' <<EOF; then
if ! grep -qE '^[0-9]+\.[0-9]+(\.[0-9]+)?$' <<EOF
$version_output
EOF
then
echo "FAIL: Go $version_source is not a bare version: '${go_line}'" >&2
exit 1
fi
Expand Down
3 changes: 2 additions & 1 deletion scripts/rename-placeholders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ module_output=$(printf '%s' "$new_module") || {
echo "error: could not prepare the module path for validation." >&2
exit 1
}
if ! grep -Eq '^[A-Za-z0-9._~-]+(/[A-Za-z0-9._~-]+)+$' <<EOF; then
if ! grep -Eq '^[A-Za-z0-9._~-]+(/[A-Za-z0-9._~-]+)+$' <<EOF
$module_output
EOF
then
echo "error: '$new_module' does not look like a module path (host/owner/name)." >&2
exit 1
fi
Expand Down
3 changes: 2 additions & 1 deletion scripts/rename-placeholders.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ grep -qF -- "--template devantler-tech/go-template" README.md ||
# 4) No stray temp files left behind by the in-place sed.
status_output=$(git status --porcelain --untracked-files=all) ||
fail "could not inspect the renamed repository for leftover temporary files"
if grep -q '\.rename\.' <<EOF; then
if grep -q '\.rename\.' <<EOF
$status_output
EOF
then
fail "stray *.rename.* temp file left behind"
fi

Expand Down
Loading