Skip to main content

githubActions.configs.security

Security-focused checks for workflow permissions and immutable action references in workflows and composite actions.

This preset targets workflow YAML and action.yml / action.yaml metadata. In composite actions, pin-action-shas checks external runs.steps[*].uses references.

Included rulesโ€‹

Fix legend:

  • ๐Ÿ”ง = autofixable
  • ๐Ÿ’ก = suggestions available
  • โ€” = report only
RuleFix
R026 no-inherit-secretsโ€”
R030 no-pr-head-checkout-in-pull-request-targetโ€”
R027 no-secrets-in-ifโ€”
R036 no-self-hosted-runner-on-fork-pr-eventsโ€”
R029 no-untrusted-input-in-runโ€”
R023 no-write-all-permissionsโ€”
R003 pin-action-shasโ€”
R098 require-codeql-security-events-writeโ€”
R111 require-dependabot-automation-permissionsโ€”
R112 require-dependabot-automation-pull-request-triggerโ€”
R109 require-dependabot-bot-actor-guardโ€”
R091 require-dependency-review-actionโ€”
R093 require-dependency-review-fail-on-severityโ€”
R092 require-dependency-review-permissions-contents-readโ€”
R094 require-dependency-review-pull-request-triggerโ€”
R110 require-fetch-metadata-github-tokenโ€”
R032 require-pull-request-target-branchesโ€”
R102 require-sarif-upload-security-events-writeโ€”
R107 require-secret-scan-contents-readโ€”
R105 require-secret-scan-fetch-depth-zeroโ€”
R106 require-secret-scan-scheduleโ€”
R108 require-trufflehog-verified-results-modeโ€”
R001 require-workflow-permissionsโ€”
R028 require-workflow-run-branchesโ€”