CodeQL library for GitHub Actions
codeql/actions-all 0.4.28 (changelog, source)
Search

Predicate staticallyIdentifiedSelfHostedRunner

This predicate uses data available in the workflow file to identify self-hosted runners. It does not know if the repository is public or private. It is a best-effort approach to identify self-hosted runners.

Import path

import codeql.actions.security.SelfHostedQuery
predicate staticallyIdentifiedSelfHostedRunner(Job job)