---
title: "Using GitHub Actions with Heroku Flow for additional Security Control"
description: "Because GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action."
url: "https://swe.quest/articles/using-github-actions-with-heroku-flow-for-additional-security-control-fea72ed977a6f5e4"
canonical: "https://www.heroku.com/blog/using-github-actions-heroku-flow-additional-security-control/"
source: "Heroku Engineering"
published: "2025-03-27"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["ci-cd","deployment","security","cloud"]
---

# Using GitHub Actions with Heroku Flow for additional Security Control

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2025-03-27, 7 min read, How-to. Original: [https://www.heroku.com/blog/using-github-actions-heroku-flow-additional-security-control/](https://www.heroku.com/blog/using-github-actions-heroku-flow-additional-security-control/)

## Summary

Because GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action. The action uses the Platform API's Source Endpoint to upload private repo code, deploy apps on push, dispatch or schedule events, and create, update or remove Review Apps on pull request events. A weekly scheduled workflow rebuilds and redeploys the runner to meet GitHub's 30-day update requirement. Tradeoffs include no repo link in the Review App UI, no automatic Heroku CI tests, no Fir support, and a custom runner image that other actions should be tested against.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- GitHub Actions workflows ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- Heroku Pipelines and Review Apps
- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

GitHub Actions, Heroku Flow, Heroku Private Spaces, Heroku Platform API, Heroku Review Apps, GitHub self-hosted runner

## Related posts

- [How GitHub uses GitHub Actions and Actions larger runners to build and test GitHub.com](https://swe.quest/articles/how-github-uses-github-actions-and-actions-larger-runners-to-build-and-test-915368ba99ad3985.md): GitHub Engineering · 2023-09-26 · Medium · 8 min read · CI/CD, Developer productivity, Identity & auth, Scaling
  GitHub moved CI for GitHub.com to GitHub Actions on larger runners, peaking at about 4,500 concurrent 32-core runners, 15,000 jobs per hour and 150,000 cores.
- [Migrating Your GitHub CI to Hugging Face Jobs](https://swe.quest/articles/migrating-your-github-ci-to-hugging-face-jobs-1982ddd33280cd0b.md): Hugging Face · 2026-06-09 · Medium · 8 min read · CI/CD, Serverless, Developer tools
  GitHub Actions jobs can run on Hugging Face Jobs by using a dispatcher Space and a GitHub App that receive \`workflow\_job.queued\` webhooks.
- [How we build containerized services at GitHub using GitHub](https://swe.quest/articles/how-we-build-containerized-services-at-github-using-github-fb75069d884e4f71.md): GitHub Engineering · 2023-08-02 · Easy · 6 min read · Kubernetes, Developer productivity, Deployment, Containers, CI/CD
  GitHub runs hundreds of internal and production services on a "paved path": a Kubernetes-based, multi-cluster, multi-region platform plus conventions and custom tooling layered on top.
- [Enabling branch deployments through IssueOps with GitHub Actions](https://swe.quest/articles/enabling-branch-deployments-through-issueops-with-github-actions-8c407fc129221de6.md): GitHub Engineering · 2023-02-02 · Medium · 6 min read · Deployment, CI/CD, Infrastructure as code
  GitHub's branch-deploy Action brings the branch deploy model to any repository through IssueOps: comment commands like \`.deploy\` or \`.deploy noop\` on a pull request trigger a GitHub Actions workflow that deploys the branch before it is merged.
- [MCP Horror Stories: The GitHub Prompt Injection Data Heist](https://swe.quest/articles/mcp-horror-stories-the-github-prompt-injection-data-heist-118a1d699702a7aa.md): Docker · 2025-08-14 · Medium · 15 min read · AI agents, Application security, Identity & auth, LLMs
  A prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
