---
title: "Discussion on \"GitHub Actions for Beginners: GitHub Actions Security: Secrets, Permissions, and Safe Workflows\" | Hashnode"
description: "Discussion on \"GitHub Actions for Beginners: GitHub Actions Security: Secrets, Permissions, and Safe Workflows\". Part 3 of 5 in a series that takes you from your first workflow to production-grade automation"
url: "https://hashnode.com/posts/github-actions-secrets-permissions-security/6ae86adec8a74c627bc2ab55"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [GitHub Actions for Beginners: GitHub Actions Security: Secrets, Permissions, and Safe Workflows](https://adithyameda.hashnode.dev/github-actions-secrets-permissions-security?utm_source=hashnode&utm_medium=feed)

Part 3 of 5 in a series that takes you from your first workflow to production-grade automation

Nov 2 · 13 min read · adithyameda.hashnode.dev  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#github-actions](https://hashnode.com/tag/github-actions)
-   [#security](https://hashnode.com/tag/security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#devsecops](https://hashnode.com/tag/devsecops)

## Written by

[Adithya M S](https://hashnode.com/@adithyameda)

@adithyameda

  
[View profile](https://hashnode.com/@adithyameda)

Practical guides for DevOps, GitHub, AWS, and Cloud Engineering

Senior DevOps Engineer @Canarys Automations | GitHub, AWS, Docker, K8s, Terraform, CI/CD | Accelerating infrastructure &amp; automation using AI tools (Copilot, Claude).

## Responses 2

Markdown supported · ⌘↵ to post

[AI Developer](https://hashnode.com/@lycore)

[Nov 3](https://hashnode.com/posts/github-actions-secrets-permissions-security/6ae86adec8a74c627bc2ab55/comment/6ae926c47356e1e39d252e2a)

Good coverage of the pull\_request\_target pitfall. Two additions worth considering: setting the org-level policy to require full-SHA pinning for actions (and letting Dependabot bump the SHAs) removes the 'convenient tag vs. safe SHA' tradeoff, and for deploys, an OIDC-issued short-lived cloud credential bound to a GitHub Environment with required reviewers is usually safer than any stored secret. Also, since a job-level permissions block replaces the workflow one, is there a lint (e.g. zizmor or actionlint) you'd suggest running in CI to catch jobs that silently inherit broader scopes?

[Adithya M S](https://hashnode.com/@adithyameda)

[Nov 3](https://hashnode.com/posts/github-actions-secrets-permissions-security/6ae86adec8a74c627bc2ab55/comment/6ae926c47356e1e39d252e2a#reply-6ae97c59045e4898da0c7d53)

Yes using linters in CI pipeline will catch broad inherited permissions.
