← Documentation

GitHub Action (Marketplace)

Check every push and pull request with Hacktualiz/import-gate@v1.

Set it up

Add the HACKAIZ_API_KEY repository secret, then create .github/workflows/hackaiz.yml with actions/checkout@v4 followed by uses: Hacktualiz/import-gate@v1 and api-key: ${{ secrets.HACKAIZ_API_KEY }}. GitHub's "Choose a workflow" page lists templates, not Marketplace actions.

What it does and costs

A static check of components, workflows and packages; it never executes, pushes or merges code. Danger or an incomplete result fails the job by default. Each run costs credits. Never expose the secret to fork pull requests. SARIF upload to the Security tab depends on the repository's Code scanning permissions.

Is your AI app protected?

Create your account with free credits, prove your domain, then get a report with evidence and priorities.

Permissions to grant

Give the job only contents: read, plus security-events: write if you upload SARIF. Use persist-credentials: false on checkout so later steps cannot reuse the GitHub token. The Hackaiz key stays in repository secrets and is never printed in logs.

  1. Create the HACKAIZ_API_KEY secret.
  2. Keep permissions minimal.
  3. Do not run on fork pull requests with secrets.

When the job fails

Danger means a blocking rule was triggered; open the job summary for the rule identifiers and files. Incomplete means part of the content could not be checked (no credits, error, excluded or oversized files); it fails by default so missing coverage is never read as safe.

  1. Read the rule identifiers in the summary.
  2. Fix or remove the flagged content.
  3. Push again; the new run is billed.

Security tab upload

The SARIF file is produced by the action. GitHub accepts the upload only when Code scanning is available for the repository and the job has security-events: write. A "Resource not accessible by integration" message means GitHub refused the upload, not that the check failed.

  1. Check repository Code scanning settings.
  2. Confirm job permissions.
  3. Keep the job result as the source of truth.

Is your AI app protected?

Create your account with free credits, prove your domain, then get a report with evidence and priorities.

Sources and further reading

These publications describe related practices and standards. They do not certify your platform or imply that Hackaiz executes every documented method.