<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runn-yybrcx71z" -->

---
title: anthropics/claude-code-action Security: How to Secure...
description: Claude Code (anthropics/claude-code-action) runs in GitHub Actions without built-in network restrictions, unlike GitHub Copilot which includes a network...
canonical: https://daily.dev/posts/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runn-yybrcx71z
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: anthropics/claude-code-action Security: How to Secure Claude Code in GitHub Actions with Harden-Runner | daily.dev
og:description: Claude Code (anthropics/claude-code-action) runs in GitHub Actions without built-in network restrictions, unlike GitHub Copilot which includes a network...
og:url: https://daily.dev/posts/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runn-yybrcx71z
og:image: https://api.daily.dev/og/posts/yybRcX71z.png
og:image:alt: anthropics/claude-code-action Security: How to Secure Claude Code in GitHub Actions with Harden-Runner
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# anthropics/claude-code-action Security: How to Secure Claude Code in GitHub Actions with Harden-Runner

**[StepSecurity](https://daily.dev/sources/stepsecurity)** · 6 min read · 0 upvotes · 0 comments

## Summary

Claude Code (anthropics/claude-code-action) runs in GitHub Actions without built-in network restrictions, unlike GitHub Copilot which includes a network firewall by default. This design prioritizes flexibility but shifts security responsibility entirely to the implementation team. The post demonstrates how to add StepSecurity's Harden-Runner to audit all outbound network calls made by Claude Code during CI/CD runs. A real-world example traces Claude Code's full network activity during a Python image generation task, revealing connections to api.anthropic.com, npmjs.org, pypi.org, bun.sh, statsig.anthropic.com, and GitHub APIs — activity invisible in standard CI logs. The key takeaway is that runtime monitoring via Harden-Runner is essential for organizations deploying Claude Code in production pipelines.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.stepsecurity.io/blog/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runner>

---

Tags: [#github-actions](https://daily.dev/tags/github-actions), [#claude-code](https://daily.dev/tags/claude-code)

[View this post on daily.dev](https://daily.dev/posts/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runn-yybrcx71z)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"anthropics/claude-code-action Security: How to Secure Claude Code in GitHub Actions with Harden-Runner","url":"https://daily.dev/posts/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runn-yybrcx71z","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runn-yybrcx71z"},"datePublished":"2026-03-31T12:25:36.247Z","dateModified":"2026-03-31T12:29:40.521Z","description":"Claude Code (anthropics/claude-code-action) runs in GitHub Actions without built-in network restrictions, unlike GitHub Copilot which includes a network...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/aea7578d2c8d159d133d19dc43f272ea?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/aea7578d2c8d159d133d19dc43f272ea?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"StepSecurity","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"StepSecurity","logo":"https://media.daily.dev/image/upload/s--vegWii-S--/f_auto,q_auto/v1774959924/logos/stepsecurity?_a=BAMAMiWQ0","url":"https://daily.dev/sources/stepsecurity"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/anthropics-claude-code-action-security-how-to-secure-claude-code-in-github-actions-with-harden-runn-yybrcx71z","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"github-actions,claude-code","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"StepSecurity","item":"https://daily.dev/sources/stepsecurity"},{"@type":"ListItem","position":3,"name":"anthropics/claude-code-action Security: How to Secure Claude Code in GitHub Actions with Harden-Runner"}]}
```

