# Securing AI Pull Requests: Building a Deterministic AST Audit Harness in GitHub Actions

DevFeed: [Securing AI Pull Requests: Building a Deterministic AST Audit Harness in GitHub Actions](<https://devfeed.tech/articles/securing-ai-pull-requests-building-a-deterministic-ast-audit-harness-in-github-actions-55357.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/securing-ai-pull-requests-ast-audit-harness-github-actions/>)

Author: SitePoint Team

Published: 2026-09-19T14:37:53Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [ai security](<https://devfeed.tech/topics/ai-security.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Security](<https://devfeed.tech/topics/security.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [JSON Schema](<https://devfeed.tech/topics/json-schema.md>), [Git](<https://devfeed.tech/topics/git.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-agent](<https://devfeed.tech/tags/ai-coding-agent.md>), [ast](<https://devfeed.tech/tags/ast.md>), [audit](<https://devfeed.tech/tags/audit.md>), [ci](<https://devfeed.tech/tags/ci.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [code](<https://devfeed.tech/tags/code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [egress](<https://devfeed.tech/tags/egress.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [json-schema](<https://devfeed.tech/tags/json-schema.md>), [programming](<https://devfeed.tech/tags/programming.md>), [secret](<https://devfeed.tech/tags/secret.md>), [securing-ai](<https://devfeed.tech/tags/securing-ai.md>), [web-security](<https://devfeed.tech/tags/web-security.md>)

## AI overview

A guide to building a deterministic AST audit scanner in GitHub Actions for pull requests created by AI coding agents. The scanner checks for prototype pollution, secret leakage, and unauthorized network egress, then validates findings and can block merges for error-severity issues.

## Source excerpt

Build a deterministic CI/CD audit harness that checks AI coding-agent pull requests for AST prototype pollution, secret leakage, and unsafe egress before merge. Continue reading Securing AI Pull Requests: Building a Deterministic AST Audit Harness in GitHub Actions on SitePoint.