R212 Pin the hosted Linux runners of CI to a fixed release

Off by default

Pin each Linux runner that the CI service hosts to a label that names a fixed release of its system, never to a label the service moves, in a matrix too.

Reason

A moving label, such as ubuntu-latest of GitHub Actions, points to whichever release the CI service chooses, and it moves while the repository does not change. The same change can then reach another conclusion on another runner, and the check cannot tell whether the code changed or the environment did (Art. VII §2).

Verification

A label that names a fixed release is one that the CI service keeps on one release of the system, such as ubuntu-<version> of GitHub Actions; which release is the jurisdiction’s choice, and rule 317, where it is on, names the label. Self-hosted runners and runners of a system other than Linux are not covered.

Violated when a CI workflow of the repository sets a Linux runner that the CI service hosts, a value in a matrix included, to a label that does not name a fixed release.

Provisions of the constitution it cites

Relations

Parent
R276 CI and Releases
Requires
none
Conflicts with
none

Metadata

ID
212
Revision
4
Kind
rule
Status
trial
Slug
pin-hosted-runner-release
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh