From 217f1948b404134f2020572ffffaf61cb7010523 Mon Sep 17 00:00:00 2001 From: ashsolei Date: Wed, 13 May 2026 22:39:42 +0200 Subject: [PATCH] chore: wire dev-version.yml@v1 and normalize ghcr-cleanup.yml Normalizes dev-version consumer (removes redundant permissions block, fixes workflow name casing). Normalizes ghcr-cleanup consumer to include explicit retention-days, delete-old-tagged, and secrets: inherit per enterprise standard. Pins both at @v1 per drift-hazard policy. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/dev-version.yml | 5 +---- .github/workflows/ghcr-cleanup.yml | 7 +++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev-version.yml b/.github/workflows/dev-version.yml index 5fad41c..851ed79 100644 --- a/.github/workflows/dev-version.yml +++ b/.github/workflows/dev-version.yml @@ -1,12 +1,9 @@ -name: Dev version +name: Dev Version on: push: branches-ignore: [main, master] -permissions: - contents: write - jobs: dev-version: uses: Ai-road-4-You/enterprise-ci-cd/.github/workflows/dev-version.yml@v1 diff --git a/.github/workflows/ghcr-cleanup.yml b/.github/workflows/ghcr-cleanup.yml index 4e54c60..eb45c7f 100644 --- a/.github/workflows/ghcr-cleanup.yml +++ b/.github/workflows/ghcr-cleanup.yml @@ -1,8 +1,8 @@ -name: GHCR cleanup +name: GHCR Cleanup on: schedule: - - cron: "0 3 * * 0" # Sunday 03:00 UTC + - cron: "0 3 * * 0" # Weekly Sunday 03:00 UTC workflow_dispatch: permissions: @@ -13,4 +13,7 @@ jobs: uses: Ai-road-4-You/enterprise-ci-cd/.github/workflows/ghcr-cleanup.yml@v1 with: keep-latest-tagged: 2 + retention-days: 30 keep-latest: 10 + delete-old-tagged: true + secrets: inherit