Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Github and cicd security at postman
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

GitHub and CI/CD Security at Postman

Фото: Rubaitul Azad (Unsplash) — https://unsplash.com/photos/a-white-dice-with-a-black-github-logo-on-it-HLQDfaJUTVI?utm_source=dev48&utm_medium=referral

Source: Postman Blog•December 1, 2026 at 04:47 PM

GitHub and CI/CD Security at Postman

See how Postman built a CI/CD security visibility and remediation system across 23 GitHub orgs and 6000+ repos, raising 3000+ PRs. Read the breakdown. The post GitHub and CI/CD Security at Postman appeared first on Postman Blog .

December 1, 2026

Introduction

Getting deep visibility into CI/CD security is hard. Settings are layered across enterprise, orgs, repos, branches and rulesets. CI/CD steps call cross-org workflows and third-party actions. Installed apps carry their own permissions, granted once and rarely revisited. Pipeline code tends to be written once and then left alone, and is not typically held to the same security standards of product code.

At Postman, we’ve been trying to answer these questions that span 23 orgs and over 6000 repositories. Some are years old, some created last week by an agent. Most have not gone through the rigorous security review process that product code goes through.

This post covers what we built:

  • A system that uses a dedicated app per org to pull org-level and repo-level settings, ruleset hierarchy, pages, webhooks, runners and installed apps among other settings.
  • CI/CD down-to-line resolution across composite workflows for code search and vulnerability analysis.
  • Raw data is evaluated for findings against 70 controls and multiple compliance suites.
  • An agentic approach to remediation at scale.
  • A single pane-of-glass to visualize findings, progress and trends.

How we built it

The Initial Access

It all starts with a GitHub app, installed per organization. A minimal set of read-only permissions for the set of APIs we’re looking at and a private key in AWS.

Data fetch and Processing

Collection runs in a set of containers, one run per org. Each collector loads its Github app’s private-key from AWS Secrets Manager and signs a short-lived JWT. It exchanges that JWT for a one-hour installation token and repeats upon expiration.

From there, each collector runs a multi-threaded Python process: a configurable number of repo-level workers on pooled HTTP sessions, a rate-limit with backoff and retry shared across threads, bounded pagination, and per-repo checkpoints that let an interrupted run pick up where it stopped.

Below is a subset of APIs we call and some areas of interest.

Rule source (enterprise/org/repo), enforcement and target details

We also process effective rules – what actually applies after the hierarchy of rulesets resolves. Controls involve required approvals on PRs, status checks, force-push protection, review-dismissal, bypass rules.

A note on workflows

Workflow files are not usually stand-alone. A job can be a list of steps or a single <code>uses</code> which points at another workflow, which has its own job recursively. We use the content API to pull workflow files and walk the job tree followed by flattening to an addressable path such as:

Code is indexed and searchable. We can query for injection vulnerabilities, timeouts, excessive permissions, credential storage, unusual operations in custom run-code, third-party action usage, version pinning, bot checks and package manager parameters among others. For example:

Execution

The collector runs in three ways:

  • Locally on security engineer machines, containerized
  • Started locally, executed on ECS
  • Scheduled by EventBridge, executed on ECS

Parameters for the run can be tuned via environment variables and control:

  • ECS network configuration – subnets, security groups
  • DB cluster ARNs
  • Toggle push to DB (or keep data local)
  • Toggle fetchers off (push local data to db)
  • Resuming interrupted runs
  • Multithreading options
  • DB upload batching and sizing, warmup procedures, retries and rollbacks
  • Pagination controls for individual GitHub APIs
  • Repo sampling: all | stale since n days | sampled to n%
  • GitHub rate limit backoff-and-retry parameters

Control Evaluation and Storage

Control evaluation takes place along with updates to mappings into compliance standards including FedRAMP, NIST, SAMM, etc (inspired by the SCF project). Raw data, control evaluation results and metrics are pushed to a serverless database. A container for visualization/dashboards, querying and alerting runs on the ECS cluster, accessible behind VPN and an Okta binding has been built for security engineers and management. A read-only JSON-ified interface into the DB is available for agents, leading into the remediation subsystem, but more on that later. The database schema and deep-dive into fields have been left out for brevity.

Visibility and Hunting

With the structured data model, post-processing and a read-only interface into the DB, we can get Claude to triage for us and build out our search. Some examples are given below.

Which users have admin rights on public repos but are not org admins?
List private repos with public Pages in org-x and org-y that were updated in the last 30 days.
List repos that have a workflow that pipes a remote script into a shell.
Where do our webhooks send data?
Give me a breakdown of cross-repo workflows with statistics on usage and refs/tags
Which jobs inject secrets into shell scripts and also use unpinned actions?
  • Which org moved most on a control?
  • What is the trend over time for missing gitignore files in org x for public repos?
  • Which run blocks of code appear exactly in more than 10 repos? (probably copied-and-pasted)
  • How many versions of some/action do we run?
  • Which repos had the most CI/CD activity last week but don’t enforce a ruleset against force merges?

… and more.

However, querying for the problem is one thing. Fixing it across hundreds or thousands of repos is where the skills come in.

We use a set of Claude skills that sequence playbook documents and python tools per control, deterministic/in-code in most places and agentic reasoning in some. Security engineers currently use these on their local machines and we’re thinking about setting this on autopilot.

Breaking it down

/pmsec-status

Claude uses the db-read-interface tooling to generate a worklist from the control evaluation results and tracks on-system, PR-review and merged states. Jobs and state are written to the local ‘claims’ filesystem.

/pmsec-fix-many –org <> –control <> –batch <>

Picks a set from the job table, creates a claim to avoid overlap from other agents and routes to the workflow for that control. Each control’s workflow contains its own set of data and python tools. A couple of examples are summarised below

Example 01: Fix-steps for missing timeouts

  • Validate that each repo in the received job list meets the criteria for remediation.
  • SSH-clone the repo, plug p75, p90 and max-time data from the past n successful workflow runs into a formula that accounts for headroom within reason. If pipeline code contains developer defined timeouts within the run code itself, the job is marked for an agentic review.
  • Apply changes to a local branch. Picks a person based on past commits, time since last commit and fallbacks for a PR review (also in code, using the GitHub API and gh CLI). Waits for human review.
  • Once human-approved, push the branch, open the PR and assign the reviewer.

Example 02: Fix-steps for persisting credentials

  • Validate each repo in the received job list meets criteria for remediation.
  • SSH-clone the repo. Apply a list of classification rules on subsequent actions and label safe/unsafe/review based on whether they need the git token.
  • Items marked for review (usually third party actions that are not in the org) get an agentic review.
  • Agent reviews items, proposes fixes, and picks potential reviewers based on past commits, time since last commit and fallbacks (also in code, using the GitHub API and gh CLI). Agent also flags safe-to-push vs. human-review-needed workflows.
  • Once human-approved, push the branch, open the PR and assign the reviewer.

/pmsec-session-remediation-review

At any point, review the claims your current agent has open. Review pending fixes and address issues from the tooling/agentic review.

/pmsec-check-open

Go through open PRs, check for failing CI/CD jobs and debug to see if it was our change. Triage comments and suggest fixes.

… and other miscellaneous procedures for testing, quality and PR editing.

Conclusion

The features discussed through this post have contributed to:

  • Incident response tooling during supply chain attacks and CVE remediation, for example: search for supply-chain compromised actions, search for risky code directly embedded in workflows, malicious packages, etc.
  • Gap tracking and deterministic remediation at scale.
  • GRC and customer questions.
  • 3000 PRs raised and counting, accounting for between 80% and 100% reduction across multiple findings and multiple orgs.
  • Broader discussions with teams about process and standard procedures across the org.
  • Over 50 controls automated against multiple compliance frameworks.
  • Improved management for actions, third-party components and package management.
  • Improved and unified compliance across member privileges, repo creation and visibility, page creation and visibility, forking rules, role creation and management, invites and rulesets among others.
  • Improved visibility and correlation across other tools/services in the dev/deploy toolchain.
← All articles

What this article says

More in Software Development

All →
Use-After-Forget: From Cluster Bus Bug to RCE in Redis
JFrog

Use-After-Forget: From Cluster Bus Bug to RCE in Redis

How to Choose Between the Headless Experience Layer and Native AI Assistant Rendering
Salesforce

How to Choose Between the Headless Experience Layer and Native AI Assistant Rendering

Sopra Steria puts a figure on the true cost of disinformation and calls for a European industry to counter information threats
Sopra Steria

Sopra Steria puts a figure on the true cost of disinformation and calls for a European industry to counter information threats

Europe needs AI that delivers – on its own terms
Sopra Steria

Europe needs AI that delivers – on its own terms

Securing the AI Agent Supply Chain with Enkrypt AI by Anaconda
Anaconda

Securing the AI Agent Supply Chain with Enkrypt AI by Anaconda

New tariffs could spur more frontloading – December 1, 2026 Update
Freightos

New tariffs could spur more frontloading – December 1, 2026 Update

More from Postman

Benchmarking Coding Agents on Real API Integration Tasks
Postman

Benchmarking Coding Agents on Real API Integration Tasks

Agentic SDLC Part 3: Verify Behavior, Keep the Evidence
Postman

Agentic SDLC Part 3: Verify Behavior, Keep the Evidence

Agentic SDLC Part 1: Design with the Context Graph
Postman

Agentic SDLC Part 1: Design with the Context Graph

Your coding agent leaked the key. It was only following orders.
Postman

Your coding agent leaked the key. It was only following orders.

Give developers and agents API access with Postman Passport
Postman

Give developers and agents API access with Postman Passport

The 2026 State of the API Report: agents are in production, and most APIs aren’t ready
Postman

The 2026 State of the API Report: agents are in production, and most APIs aren’t ready