Instruction file imported from SecPal/api (
.github/instructions/github-workflows.instructions.md). Copyright stays with the author.
GitHub Actions And Workflow Rules
Applies when editing GitHub Actions workflows and Dependabot configuration in this repository.
- Always set
timeout-minuteson every job that runs steps. Jobs that directly call a reusable workflow withusesare the required exception: GitHub Actions does not permittimeout-minuteson them, so omit it rather than adding invalid syntax. - Set explicit
permissionson every workflow and start with the least privilege needed. - Pin third-party actions to immutable versions. GitHub-maintained
actions/*may use supported major tags in this org. - Use reusable workflows from the organization templates when they fit the task.
- Use
continue-on-error: trueonly for intentional polling or wait steps, never for build or test steps. - Reference secrets via
${{ secrets.NAME }}and vars via${{ vars.NAME }}. Never hardcode or echo secrets. - Run
yamllinton workflow changes before finalizing.