From 81b579e2baab8bdde7d2960a7633889fd0d4b19f Mon Sep 17 00:00:00 2001 From: panicboat Date: Sun, 25 Oct 2026 09:29:34 +0900 Subject: [PATCH] ci: call the shared workflows from panicboat/.github The pull request checks and the Renovate settings now live in panicboat/.github, shared with monorepo and platform. Claude-Session: https://claude.ai/code/session_01R7jQZQj1VyeBbYR7P1ssV7 Signed-off-by: panicboat --- .github/renovate.json | 68 +-------------------- .github/workflows/lint-actions.yml | 12 ++-- .github/workflows/semantic-pull-request.yml | 24 +++----- 3 files changed, 13 insertions(+), 91 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index c06fd03..7ddef11 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,70 +1,4 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended", - ":semanticCommits", - ":separateMajorReleases", - "group:monorepos", - "group:recommended", - "helpers:pinGitHubActionDigests" - ], - "semanticCommitScope": "{{packageFileDir}}", - "timezone": "Asia/Tokyo", - "labels": [ - "🤖 renovate" - ], - "assigneesFromCodeOwners": false, - "reviewersFromCodeOwners": true, - "automergeType": "pr", - "automergeStrategy": "squash", - "platformAutomerge": true, - "prConcurrentLimit": 15, - "prHourlyLimit": 5, - "branchPrefix": "renovate/", - "rangeStrategy": "bump", - "schedule": [ - "before 4am every weekday" - ], - "minimumReleaseAge": "1 day", - "separateMinorPatch": false, - "packageRules": [ - { - "description": "Default: separate PRs per package", - "groupName": "{{packageFileDir}}/{{depName}}", - "matchPackageNames": [ - "*" - ] - }, - { - "description": "🚫 Production environments - disable automerge", - "matchFileNames": [ - "**/production/**" - ], - "automerge": false, - "prPriority": -1, - "addLabels": [ - "⚠️ production" - ] - }, - { - "description": "🚫 Major updates - disable automerge", - "matchUpdateTypes": [ - "major" - ], - "automerge": false, - "addLabels": [ - "📈 major-update" - ] - }, - { - "description": "✅ Minor/Patch updates - enable automerge", - "matchUpdateTypes": [ - "minor", - "patch", - "pin", - "digest" - ], - "automerge": true - } - ] + "extends": ["github>panicboat/.github"] } diff --git a/.github/workflows/lint-actions.yml b/.github/workflows/lint-actions.yml index 5bfcfb8..a05997e 100644 --- a/.github/workflows/lint-actions.yml +++ b/.github/workflows/lint-actions.yml @@ -1,3 +1,4 @@ +# Checks that every action is pinned to a full commit SHA. name: Lint GitHub Actions on: @@ -5,13 +6,8 @@ on: branches: [main] pull_request: -permissions: - contents: read - jobs: ensure-sha-pinned: - name: Ensure actions are pinned to SHAs - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: zgosalvez/github-actions-ensure-sha-pinned-actions@c4e71056006d29f90204b2d063be337109507d62 # v5.0.10 + permissions: + contents: read + uses: panicboat/.github/.github/workflows/reusable--lint-actions.yaml@d54532665675f1843914da4b324dc2a58dd37239 # v1.0.0 diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index aced0eb..a2e5238 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -1,24 +1,16 @@ +# Validates that the pull request title follows Conventional Commits. name: Semantic Pull Request on: pull_request_target: types: [opened, edited, synchronize, reopened] -permissions: - contents: read - jobs: validate: - name: Validate PR title - runs-on: ubuntu-latest - steps: - - name: Generate GitHub App token - id: app-token - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 - with: - app-id: ${{ vars.APP_ID }} - private-key: ${{ secrets.APP_PRIVATE_KEY }} - - - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + permissions: + contents: read + uses: panicboat/.github/.github/workflows/reusable--semantic-pull-request.yaml@d54532665675f1843914da4b324dc2a58dd37239 # v1.0.0 + with: + app-id: ${{ vars.APP_ID }} + secrets: + private-key: ${{ secrets.APP_PRIVATE_KEY }}