Instruction file imported from navikt/syfo-budstikka (
.github/instructions/github-actions.instructions.md). Copyright stays with the author.
Workflow floor
The existing workflows are the pattern reference — read them before writing one. This file only holds what is not discoverable or enforced there.
- Pin third-party actions to a full commit SHA with a version comment.
Exception:
nais/*actions use stable semver tags (zizmor flags this; the finding is accepted). - Explicit least-privilege
permissionsper workflow/job,timeout-minuteson every job,concurrencyon deploys. Neverpermissions: write-all. - Images are built with Jib via
nais/login— notnais/docker-build-push. Every environment deploys the image from the single build job. - Never
pull_request_targetwith checkout of the PR branch, and never log secrets in workflow output. - Lint with
actionlintandzizmorbefore pushing.
Ask first: new secrets or environment variables, changes to deploy order
(dev → prod), new reusable workflows, or changes to the team value.