Repository navigation
chore: Refactor github_actions_organization_workflow_permissions - #3682
stevehipwell wants to merge 1 commit into
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
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
a3edd4d to
6fdc79b
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!