Add GitLab CI and CircleCI integration templates#217
Open
seonghobae wants to merge 1 commit into
Open
Conversation
Provide ready-to-copy pipeline configs so non-GitHub users can run AppGuardrail in their CI. Each template installs AppGuardrail, scans the checkout, writes a SARIF report as an artifact, and fails the pipeline on deploy-blocking findings via the scanner exit code. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EywwS2Du8pimW7xqRP3An3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ready-to-copy CI integration templates so non-GitHub users can run AppGuardrail in their pipeline. GitHub users already have
appguardrail monitor(GitHub Actions); this closes the gap for GitLab CI and CircleCI.New
ci-templates/directory:gitlab-ci.yml— copy to repo root as.gitlab-ci.yml. Anappguardrailjob that installs AppGuardrail, scans the checkout, writes a SARIF report as a build artifact, and fails the job on deploy-blocking findings.circleci-config.yml— copy to.circleci/config.yml. Asecurity-scanjob in asecurityworkflow that does the same, storing the SARIF viastore_artifacts.README.md— which file goes where, what runs, and what makes the pipeline fail.Both templates run the real invocation
python -m scanner.cli.appguardrail scan --sarif appguardrail.sarif .— only flags that exist on develop (--sarif). The pipeline fails becausescanexits non-zero on deploy-blocking (CRITICAL/HIGH) findings.Tests
tests/test_ci_templates.py— stdlib-only smoke test asserting both templates exist, are non-empty, and contain thescanner.cli.appguardrail scaninvocation.Docs
[Unreleased]entry (Korean).ci-templates/.🤖 Generated with Claude Code