ci: lint workflows with forgejo-runner validate and actionlint #20

Open
marius.schiffer wants to merge 1 commit from ci/lint-workflows into main

The repo only contains reusable (workflow_call) workflows, so nothing ran on PRs and Renovate PRs like #6 had no status checks, hence no automerge.

Adds .forgejo/workflows/lint.yaml, triggered on push/PR:

  • forgejo-runner validate (v12.13.2, same major as the fleet runners): the schema check the runners apply at job start, e.g. it catches Unknown Variable Access gitea.
  • actionlint 1.7.12, ignoring only its rule that rejects Forgejo's uses: https://github.com/... form.

Both binaries are pinned by version and sha256.

https://claude.ai/code/session_01JB5iiCzEfiX1qpuDjSJm8r

The repo only contains reusable (`workflow_call`) workflows, so nothing ran on PRs and Renovate PRs like #6 had no status checks, hence no automerge. Adds `.forgejo/workflows/lint.yaml`, triggered on push/PR: - `forgejo-runner validate` (v12.13.2, same major as the fleet runners): the schema check the runners apply at job start, e.g. it catches `Unknown Variable Access gitea`. - `actionlint` 1.7.12, ignoring only its rule that rejects Forgejo's `uses: https://github.com/...` form. Both binaries are pinned by version and sha256. https://claude.ai/code/session_01JB5iiCzEfiX1qpuDjSJm8r
ci: lint workflows with forgejo-runner validate and actionlint
All checks were successful
Lint workflows / lint (pull_request) Successful in 4s
Lint workflows / lint (push) Successful in 5s
54d6b35bb6
The repo only held reusable workflows, so PRs got no status checks and
Renovate never considered them green enough to automerge.

Claude-Session: https://claude.ai/code/session_01JB5iiCzEfiX1qpuDjSJm8r
All checks were successful
Lint workflows / lint (pull_request) Successful in 4s
Lint workflows / lint (push) Successful in 5s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ci/lint-workflows:ci/lint-workflows
git switch ci/lint-workflows

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff ci/lint-workflows
git switch ci/lint-workflows
git rebase main
git switch main
git merge --ff-only ci/lint-workflows
git switch ci/lint-workflows
git rebase main
git switch main
git merge --no-ff ci/lint-workflows
git switch main
git merge --squash ci/lint-workflows
git switch main
git merge --ff-only ci/lint-workflows
git switch main
git merge ci/lint-workflows
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TRB/ci-workflows!20
No description provided.