No pull-request pipeline: the most shared repository is the least checked #25
Labels
No labels
priority/P0
priority/P1
priority/P2
priority/P3
size/L
size/M
size/S
size/XL
size/XS
state/done
state/in-progress
state/in-review
state/needs-refinement
state/ready
type/bug
type/chore
type/feature
type/refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
amtronics/platform-actions#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
This repository has no pull-request pipeline.
.forgejo/workflows/holds onlyrelease.yml, andmain's protection requires an approval and no status checks — so a change to a composite action reaches every consuming repository having been read by a reviewer and executed by nothing.That is a wider blast radius than any application repository here: a bad
deploy-vpsorreleaselands on the movingv3tag and every pipeline in the fleet picks it up on its next run.The org standard is that every repository validates pull requests. This one is the least covered and the most shared.
Scope
pr.ymlthat validates what can be validated without a host — the action YAML parses, the shell in each composite step is syntactically valid, and the README lints — plus registering it as a required status check onmain.Acceptance criteria
action.ymlin the repository is parsed and a syntax error fails the check.run:step is checked for syntax errors (bash -nor shellcheck) and a broken script fails the check.main, when it is read back, then the new check is listed as required.Notes
bash -non a composite step'srun:body is not free to extract — the steps are YAML strings containing${{ }}expressions, which are not valid shell. Substituting a placeholder for each expression before the syntax check is the straightforward approach, and it is worth writing down whichever way it is done.