---
title: "Comment by AI Developer on \"GitHub Actions for Beginners: GitHub Actions Security: Secrets, Permissions, and Safe Workflows\" | Hashnode"
description: "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 let"
url: "https://hashnode.com/posts/github-actions-secrets-permissions-security/6ae86adec8a74c627bc2ab55/comment/6ae926c47356e1e39d252e2a"
---

[Discussion](https://hashnode.com/posts/github-actions-secrets-permissions-security/6ae86adec8a74c627bc2ab55)

Comment [GitHub Actions for Beginners: GitHub Actions Security: Secrets, Permissions, and Safe Workflows](https://hashnode.com/posts/github-actions-secrets-permissions-security/6ae86adec8a74c627bc2ab55)

[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.
