Skip to content

chore: ⬆️ dependency sweep, vulnerability alerts resource, push protection, delete UnifyTickerTool and UnifyFootball-Infrastructure - #10

Merged
RazvanBerbece merged 7 commits into
mainfrom
chore/deps-2026-10
Oct 23, 2026
Merged

RazvanBerbece merged 7 commits into
mainfrom
chore/deps-2026-10

Conversation

@RazvanBerbece

@RazvanBerbece RazvanBerbece commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Moves every dependency of this repo to its latest stable release: the GitHub Actions in both workflows and the integrations/github Terraform provider (lock file regenerated).
  • Replaces the deprecated vulnerability_alerts attribute on github_repository with the dedicated github_repository_vulnerability_alerts resource.
  • Declares secret scanning push protection, ending the perpetual BaseTemplate update every plan showed.
  • Deletes the UnifyTickerTool and UnifyFootball-Infrastructure repositories.

One commit per scope, following the UnifyFootball dep-updates skill.

Dependency moves

Scope Dependency Old New Notes
Actions actions/checkout v6 v7.0.1 v7.0.0 blocks fork PR checkouts on pull_request_target/workflow_run only; ESM rewrite. No input used here changed.
Actions hashicorp/setup-terraform v4 v4.0.1 v4.0.1 fixes the Node 24 url.parse() deprecation warning.
Actions actions/github-script v8 v9.0.0 v9.0.0 breaks require('@actions/github') and redeclaring getOctokit. The PR comment script uses neither.
Actions mathieudutour/github-tag-action v6.2 v7.0.0 Needs a workflow change, see below.
Actions ncipollo/release-action v1.21.0 v1.21.0 Already the latest.
Terraform integrations/github 6.11.1 (lock: 6.2.2) 6.13.0 6.12.0, 6.12.1, 6.13.0.
Terraform CLI setup-terraform default latest latest (1.17.0) Not pinned in this repo.

Action pins now use full vX.Y.Z tags, the same style as UnifyFootball.

Changes the new versions require

  • github-tag-action v7. v7 calculates no version when no eligible commit exists since the last tag (for example a workflow_dispatch re-run of an already released main). new_tag can then be empty, so the GitHub release step is now guarded with if: steps.tag_version.outputs.new_tag != '', as the migration guide asks. The other v7 changes do not affect this workflow: default_bump: major is still the fallback, main is still a release branch, and dry_run: true still leaves the tagging to ncipollo/release-action.
  • Lock file. .terraform.lock.hcl still pinned 6.2.2 against a 6.11.1 constraint; CI's terraform init -upgrade was papering over it. It is regenerated for 6.13.0 with hashes for linux_amd64 (CI and HCP Terraform runs), darwin_amd64 and darwin_arm64.

Vulnerability alerts deprecation

vulnerability_alerts on github_repository has been deprecated since provider 6.12.0 (#3166) and will be removed in a future version.

  • Each managed repository now gets a github_repository_vulnerability_alerts resource driven by the same enable_vulnerability_alerts flag.
  • The repository attribute is Optional + Computed, so removing it from the config causes no diff on the existing repositories.
  • The plan therefore shows a new github_repository_vulnerability_alerts resource for each remaining repository. Creating one calls the same enable endpoint the attribute used, so the live setting does not change.
  • github_repository_dependabot_security_updates now depends on the alerts resource. GitHub only enables Dependabot security updates when Dependabot alerts are on, and without this dependency a new repository would get both resources created in parallel.

Secret scanning push protection

GitHub keeps push protection enabled on the public BaseTemplate, but the config only declared secret_scanning, so every plan (the last three applies on main included) tried to set secret_scanning_push_protection back to null. Repositories with enable_secret_scanning = "enabled" now declare push protection as enabled too. This matches the live setting, and the plan shows 0 to change.

⚠️ Deleting UnifyTickerTool and UnifyFootball-Infrastructure

Both repositories are removed from repositories_list. Merging this PR runs tf-apply.yml, which applies with -auto-approve and permanently deletes both repositories (no archive_on_destroy). The destroy also covers their collaborators and Dependabot security updates resources.

  • UnifyTickerTool holds only the BaseTemplate initial commit (created and last pushed 2025-10-31).
  • UnifyFootball-Infrastructure holds only its initial commit (created and last pushed 2024-09-05). The UnifyFootball infrastructure lives in UnifyFootball's own infrastructure/ folder.
  • The GH_DEVBOT_TOKEN PAT needs the delete_repo scope (classic) or the Administration write permission (fine-grained), or the apply fails with a 403.

Validation

  • terraform fmt -check -recursive: clean.
  • terraform init -backend=false + terraform validate: valid. The 6.13.0 provider package signature was verified by terraform providers lock.
  • No GitHub advisory exists for any of the new action versions.
  • Quality Check Terraform Code passed with checkout v7.0.1, setup-terraform v4.0.1 and github-script v9.0.0 (it posted its PR comment). The speculative HCP Terraform plan (Terraform 1.17.0, provider 6.13.0) is 5 to add, 0 to change, 6 to destroy:
    • add: github_repository_vulnerability_alerts for BaseTemplate, Nozumi, Unify-Claude-Plugins, UnifyFootball and UnifyRaspiAssistant;
    • destroy: the github_repository, github_repository_collaborators and github_repository_dependabot_security_updates of UnifyTickerTool and UnifyFootball-Infrastructure;
    • change: nothing. Before the push protection commit, BaseTemplate showed the same in-place update as every apply on main.
  • tf-apply.yml only runs on main, so github-tag-action v7 and the release guard are proven by the first apply after merge.

Known issues and follow-ups

  • Provider 6.13.0 panic (#3651). github_repository_vulnerability_alerts dereferences a nil response when a transport-level error (for example a client-side rate-limit block) hits its read. The fix (#3553) is merged on the provider's main but not released yet. It is an edge case for an org of this size; move to the next provider release when it ships.

🤖 Generated with Claude Code

RazvanBerbece and others added 5 commits October 22, 2026 23:13
- actions/checkout v6 -> v7.0.1
- hashicorp/setup-terraform v4 -> v4.0.1
- actions/github-script v8 -> v9.0.0

Pins move to full vX.Y.Z tags. None of the inputs these workflows use changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
v7 no longer calculates a version when no eligible commit exists since the last
tag (for example a workflow_dispatch re-run on an already released main), so
`new_tag` can now be empty. The migration guide asks downstream steps to guard on
it, so the GitHub release step only runs when a tag was calculated.

The other v7 changes do not affect this workflow: `default_bump: major` stays the
fallback, `main` is still a release branch, and `dry_run: true` keeps tagging to
ncipollo/release-action.

Migration guide: https://github.com/mathieudutour/github-tag-action/blob/v7.0.0/docs/migrating-to-v7.md

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ity_alerts

`vulnerability_alerts` on `github_repository` is deprecated since provider 6.12.0
and will be removed in a future version. Each managed repository now gets a
`github_repository_vulnerability_alerts` resource driven by the same
`enable_vulnerability_alerts` flag.

- The repository attribute is Optional + Computed, so dropping it from the
  config causes no diff on the existing repositories.
- The new resources are created on the next apply. Creating one calls the same
  enable endpoint the attribute used, so the live setting does not change.
- Dependabot security updates now depend on the alerts resource: GitHub only
  enables them when Dependabot alerts are on, and both resources would otherwise
  be created in parallel for a new repository.

Docs: https://registry.terraform.io/providers/integrations/github/6.13.0/docs/resources/repository_vulnerability_alerts
Provider PR: integrations/terraform-provider-github#3166

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Removes the repository from the managed list. The next apply destroys
`github_repository.managed_repositories["UnifyTickerTool"]` (no
`archive_on_destroy`, so GitHub deletes it) together with its collaborators and
Dependabot security updates resources.

The repository holds only the BaseTemplate initial commit (created and last
pushed 2025-10-31).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ant-devbot

Copy link
Copy Markdown

Terraform Quality Check Update 🤖

This is an automated message generated by the CI run. It displays the statuses of the formatting, initialisation, validation and planning of the Terraform source files.

Quality Check

🖌 Terraform Format and Style: success
⚙️ Terraform Initialization: success
✔️ Terraform Validation: success

Plan

📋 Check the full plan output here: https://github.com/Unify-Solutions/github-manager/actions/runs/39863694460

Pusher: @RazvanBerbece, Action: pull_request

@RazvanBerbece RazvanBerbece self-assigned this Oct 22, 2026
RazvanBerbece and others added 2 commits October 23, 2026 00:24
…ecret scanning

GitHub keeps push protection enabled on the public BaseTemplate, but the config
only declared `secret_scanning`, so every plan since at least 2026-03-23 tried to
set `secret_scanning_push_protection` back to null. Repositories with
`enable_secret_scanning = "enabled"` now declare push protection as enabled too,
which matches the live setting and ends the perpetual in-place update.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Removes the repository from the managed list. The next apply destroys
`github_repository.managed_repositories["UnifyFootball-Infrastructure"]` (no
`archive_on_destroy`, so GitHub deletes it) together with its collaborators and
Dependabot security updates resources. Its vulnerability alerts resource is
never created, as it leaves the list in the same change.

The repository holds only the initial commit (created and last pushed
2024-09-05); the UnifyFootball infrastructure lives in UnifyFootball's own
`infrastructure/` folder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ant-devbot

Copy link
Copy Markdown

Terraform Quality Check Update 🤖

This is an automated message generated by the CI run. It displays the statuses of the formatting, initialisation, validation and planning of the Terraform source files.

Quality Check

🖌 Terraform Format and Style: success
⚙️ Terraform Initialization: success
✔️ Terraform Validation: success

Plan

📋 Check the full plan output here: https://github.com/Unify-Solutions/github-manager/actions/runs/39871601462

Pusher: @RazvanBerbece, Action: pull_request

@RazvanBerbece RazvanBerbece changed the title chore: ⬆️ dependency sweep, vulnerability alerts resource, delete UnifyTickerTool chore: ⬆️ dependency sweep, vulnerability alerts resource, push protection, delete UnifyTickerTool and UnifyFootball-Infrastructure Oct 22, 2026
@RazvanBerbece
RazvanBerbece merged commit 756ee1b into main Oct 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants