GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: require actions pinned to a full-length commit SHA on all repos but actions by devantler · Pull Request #67 · devantler-tech/.github

Conversation

@devantler

@devantler devantler commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Draft — gated on crossplane-contrib/provider-upjet-github#288 and devantler-tech/platform#2250. Do not promote/merge until a provider release embedding terraform-provider-github ≥ 6.11.0 ships and platform#2250 activates the MRD.

What

Adds deploy/actions-permissions/ — one RepositoryPermissions
(actions.github.m.upbound.io, terraform github_actions_repository_permissions)
per managed repo, asserting shaPinningRequired: true via a shared kustomize
patch, enforcing GitHub's Require actions to be pinned to a full-length commit
SHA
policy declaratively.

Scope

Every repo managed in labels/ except devantler-tech/actions (16 repos:
.github, platform, ksail, maintenance, agent-skills, agent-plugins, unifi,
gitops-tenant-template, platform-template, go-template, dotnet-template,
homebrew-tap, reusable-workflows, ascoachingogvaner, wedding-app, fleet-gitops).
actions is intentionally excluded per request.

Design

  • The policy value lives once in actions-permissions/kustomization.yaml
    (shared patch — single source of truth), mirroring the org-wide patches in
    repositories/ and labels/; per-repo files only bind it to a repo.
  • managementPolicies: [Observe, Create, Update, LateInitialize] — matches every
    other resource in deploy/. LateInitialize adopts each repo's live
    enabled/allowedActions before any write, so enabling SHA-pinning never
    disturbs existing Actions permissions. (If you prefer strict Observe-first
    adoption, drop to [Observe] and promote after confirming live state.)

Gating

sha_pinning_required is absent from the deployed provider v0.19.1 (TF
6.6.0). Requires (1) a provider release embedding TF ≥ 6.11.0
(crossplane-contrib/provider-upjet-github#288) and (2) activation of
repositorypermissions.actions.github.m.upbound.io in the platform MRAP
(devantler-tech/platform#2250).

Validation

kubectl kustomize deploy/ builds: 16 RepositoryPermissions, 16
shaPinningRequired: true, 0 for actions. .github binds to external-name
.github.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@devantler @claude
feat: require actions pinned to full-length commit SHA on all repos b…
c82717d
…ut actions

Add deploy/actions-permissions/ — one RepositoryPermissions
(actions.github.m.upbound.io, terraform github_actions_repository_permissions)
per managed repo, asserting shaPinningRequired: true via a shared kustomize
patch (single source of truth), mirroring the org-wide patches in
repositories/ and labels/.

Scope = every repo in labels/ EXCEPT devantler-tech/actions (intentionally
excluded). Observe+LateInitialize adopts each repo's live enabled/allowedActions
so enabling SHA-pinning never disturbs them.

Requires a provider-upjet-github release embedding terraform-provider-github
>= 6.11.0 (sha_pinning_required) and activation of
repositorypermissions.actions.github.m.upbound.io in the platform MRAP.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@devantler devantler mentioned this pull request Jun 23, 2026
feat: activate RepositoryPermissions MRD for actions SHA-pinning policy devantler-tech/platform#2250
Merged
@devantler
devantler marked this pull request as ready for review June 24, 2026 13:50
@devantler
devantler marked this pull request as draft June 24, 2026 13:52
devantler and others added 2 commits June 25, 2026 20:24
@devantler @claude
refactor(github): rename actions-permissions/ to repository-permissio…
ebe8b71
…ns/ (mirror CR kind)

The folder holds RepositoryPermissions resources, so name the subfolder after the CR
kind — consistent with the per-CR-kind layout (repositories/, organization-rulesets/,
repository-rulesets/, team-*/). Per-repo files keep the <repo>.yaml convention. Folder
rename + reference updates (base kustomization, README) only; resource bodies unchanged.
`kubectl kustomize deploy/` validated (16 RepositoryPermissions, SHA-pinning patch intact).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@devantler
Merge remote-tracking branch 'origin/main' into feat/require-actions-…
67b1fe0
…sha-pinning

# Conflicts:
#	deploy/README.md
#	deploy/kustomization.yaml
@devantler
devantler marked this pull request as ready for review June 25, 2026 18:29
@devantler
devantler marked this pull request as draft June 27, 2026 23:22
@devantler
devantler marked this pull request as ready for review July 2, 2026 17:58
@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 66a6fa07-c386-4402-a7c2-8a06bcebb04d

📥 Commits

Reviewing files that changed from the base of the PR and between 696d43a and 67b1fe0.

📒 Files selected for processing (19)
  • deploy/README.md
  • deploy/kustomization.yaml
  • deploy/repository-permissions/agent-plugins.yaml
  • deploy/repository-permissions/agent-skills.yaml
  • deploy/repository-permissions/ascoachingogvaner.yaml
  • deploy/repository-permissions/dot-github.yaml
  • deploy/repository-permissions/dotnet-template.yaml
  • deploy/repository-permissions/fleet-gitops.yaml
  • deploy/repository-permissions/gitops-tenant-template.yaml
  • deploy/repository-permissions/go-template.yaml
  • deploy/repository-permissions/homebrew-tap.yaml
  • deploy/repository-permissions/ksail.yaml
  • deploy/repository-permissions/kustomization.yaml
  • deploy/repository-permissions/maintenance.yaml
  • deploy/repository-permissions/platform-template.yaml
  • deploy/repository-permissions/platform.yaml
  • deploy/repository-permissions/reusable-workflows.yaml
  • deploy/repository-permissions/unifi.yaml
  • deploy/repository-permissions/wedding-app.yaml

📝 Walkthrough

Walkthrough

This PR adds a repository-permissions/ Kustomize directory containing per-repository Crossplane RepositoryPermissions manifests for 17 repositories, plus a shared kustomization patch enforcing shaPinningRequired: true. The root deploy/kustomization.yaml and deploy/README.md are updated accordingly.

Changes

Repository permissions enforcement

Layer / File(s) Summary
Documentation and root wiring
deploy/README.md, deploy/kustomization.yaml
Documents the new sha_pinning_required policy and adds repository-permissions/ to the root Kustomization resources list.
Shared SHA-pinning patch
deploy/repository-permissions/kustomization.yaml
Lists all per-repo manifests as resources and applies a JSON6902 patch setting /spec/forProvider/shaPinningRequired to true for all matching RepositoryPermissions resources.
Per-repository manifests
deploy/repository-permissions/*.yaml
Adds 17 individual RepositoryPermissions custom resources (one per repo), each configuring Observe/Create/Update/LateInitialize management policies, external-name annotation, target repository, and providerConfigRef: default.

Estimated code review effort: 2 (Simple) | ~15 minutes

Sequence Diagram(s)

Not applicable — this PR consists of homogeneous declarative YAML manifests and configuration wiring with no multi-component runtime control flow to visualize.

Related PRs: None identified.

Suggested labels: deploy, kustomize, github-actions, documentation

Suggested reviewers: devantler

Poem:
🐰 Seventeen repos, each gets a scroll,
Pinned to SHAs, that's the goal,
One patch to bind them, kustomized tight,
README updated, README done right,
Hop, hop — the manifests all take flight!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: enforcing SHA-pinned GitHub Actions across repos except actions.
Description check ✅ Passed The description is directly about the same GitHub Actions permissions change and its gating details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/require-actions-sha-pinning

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@devantler
devantler merged commit 3cbdd00 into main Jul 8, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@devantler devantler mentioned this pull request Jul 9, 2026
fix: gate repository-permissions/ until provider-upjet-github supports shaPinningRequired #86
Merged
This was referenced Jul 10, 2026
feat: archived-repo pattern + reusable-workflows archival groundwork #88
Merged
fix(aws): reconcile the default branch to main #89
Closed
Define a default-off Admins team policy #95
Closed
Bootstrap kyverno-policies repo to unblock production reconciliation #97
Closed
feat(teams): activate the declarative Admins policy #102
Closed
@coderabbitai coderabbitai Bot mentioned this pull request Jul 18, 2026
chore: close the 10 declarative coverage gaps found by the deploy/ coverage guard #115
Closed
3 tasks
This was referenced Jul 25, 2026
Adopt the GitHub surface unblocked by provider-upjet-github TF 6.13.0 (rulesets, Actions SHA-pinning, collaborators) #121
Closed
Repin provider-upjet-github to the first release bundling terraform-provider-github >= 6.13.0 devantler-tech/platform#2800
Closed
@coderabbitai coderabbitai Bot mentioned this pull request Jul 26, 2026
Repository reconciliation is fully broken: every PATCH 422s on org-enforced commit signoff #123
Closed
4 tasks
@coderabbitai coderabbitai Bot mentioned this pull request Aug 2, 2026
refactor(deploy): rename gitops-tenant-template to platform-tenant-template #129
Merged
@devantler devantler mentioned this pull request Sep 25, 2026
Turn on SHA pinning by publishing deploy/repository-permissions/ #253
Closed
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@devantler
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.