Repository navigation
chore: Refactor github_actions_organization_workflow_permissions - #3682
Conversation
|
👋 Hi, and thank you for this contribution! This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can. You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions. 🤖 This is an automated message. |
de66c5c to
5633847
Compare
There was a problem hiding this comment.
🟡 Changes recommended
State-refresh errors and incompatible plan validation can hide permission drift or reject valid configurations.
4 open findings
What changed in this PR
These provider review instructions are being used.
This PR refactors organization-level GitHub Actions permissions, including support for disabling Actions without sending an empty policy.
Changes:
- Separates context-aware lifecycle handlers and adds plan validation.
- Expands acceptance coverage for disabled Actions and empty repository selections.
- Updates generated documentation and import examples.
| File | Description |
|---|---|
| templates/resources/actions_organization_permissions.md.tmpl | Uses generated schema, examples, and imports. |
| RESOURCES.md | Marks the resource checklist complete. |
| github/resource_github_actions_organization_permissions.go | Refactors lifecycle, validation, and state handling. |
| github/resource_github_actions_organization_permissions_test.go | Expands lifecycle and validation coverage. |
| examples/resources/github_actions_organization_permissions/resource_1.tf | Updates permissions example with SHA pinning. |
| examples/resources/github_actions_organization_permissions/import.sh | Adds CLI import example. |
| examples/resources/github_actions_organization_permissions/import-by-string-id.tf | Adds declarative import example. |
| docs/resources/actions_organization_permissions.md | Regenerates schema and usage documentation. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
5633847 to
f1ecb85
Compare
f1ecb85 to
a3edd4d
Compare
a3edd4d to
6fdc79b
Compare
2ca3bee to
9619021
Compare
|
@robert-crandall this should be good for a re-review. |
9619021 to
3df9624
Compare
|
@robert-crandall could you please take another look? |
robert-crandall
left a comment
There was a problem hiding this comment.
Thank you for working through these fixes!
3df9624 to
7d65bdc
Compare
Signed-off-by: Steve Hipwell <[email protected]>
7d65bdc to
4b0cfe4
Compare

Resolves #3417
Resolves #2681
Closes #3457
Before the change?
github_actions_organization_permissionsresource wasn't working as expectedAfter the change?
github_actions_organization_permissionsresource should work correctlyPull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!