Get started

GitLab

PosturaNet opens the same fix as a GitLab merge request, on gitlab.com or self-managed GitLab. It writes only to posturanet/... branches and never merges.

Open fixes as merge requests

Set the provider in .posturanet.yml and give PosturaNet a project access token with the api scope and the Developer role, as GITLAB_TOKEN.

# .posturanet.yml
delivery:
  provider: gitlab
  gitlab:
    project: acme/infra          # or CI_PROJECT_PATH in GitLab CI
    url: https://gitlab.com      # self-managed: your GitLab URL (or CI_SERVER_URL)
    base: main
$ posturanet fix finding.json --repo . --open-pr

Check every merge request

Copy the GitLab CI job (posturanet-check.gitlab-ci.yml) into your .gitlab-ci.yml, or run posturanet connect gitlab --write and include the file it writes. It runs a plan with a read-only AWS role through GitLab OIDC, or checks the source offline. Turn on "Pipelines must succeed" to make it required. With a GITLAB_TOKEN CI/CD variable, the job also keeps one result note on the merge request.

What works on GitLab

FeatureGitLab
Fix merge requestsYes: same body, labels, one merge request per finding, open-MR limit
Contract check in CIYes: BLOCK fails the pipeline, UNKNOWN passes with a warning
Commit status and result noteYes (0.5.5): --gitlab-status sets the commit status, failed for BLOCK and UNKNOWN; --gitlab-comment keeps one note on the MR
posturanet verify after mergeYes (0.5.5): pass group/project!12 or the MR URL; a regression opens the revert as a merge request
Fast-forward mergesverify can't revert them (there is no merge commit), so it stops and says so
Next: Behavior contracts