From 73d3131fe37efb11b5ecce12d67ce06d7f1a0c3a Mon Sep 17 00:00:00 2001 From: Ivan Milev Date: Thu, 3 Dec 2026 12:20:38 +0100 Subject: [PATCH] Update CodeBoarding workflow configuration --- .github/workflows/codeboarding.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeboarding.yml b/.github/workflows/codeboarding.yml index 04526c9..c076626 100644 --- a/.github/workflows/codeboarding.yml +++ b/.github/workflows/codeboarding.yml @@ -9,6 +9,15 @@ on: # trigger: a dispatch could run sync on any branch. push: branches: ['main'] + # Loop guard: sync commits these to main. Generated files only, so an edit to + # the user-authored configuration under .codeboarding/ still triggers a sync. + paths-ignore: + - '.codeboarding/analysis.json' + - '.codeboarding/fingerprint.json' + - '.codeboarding/static_analysis.pkl' + - '.codeboarding/static_analysis.sha' + - '.codeboarding/codeboarding_version.json' + - '.codeboarding/health/health_report.json' # No workflow-level permissions: each job requests only what it needs (least # privilege), so the default token starts with none. @@ -38,6 +47,7 @@ jobs: steps: - uses: CodeBoarding/CodeBoarding-action@v1 with: + codeboarding_analysis_location: in_place # CodeBoarding's free hosted tier. No secret to add: the run authenticates # with the GitHub OIDC token that `id-token: write` above grants. llm: hosted @@ -47,13 +57,14 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 permissions: - contents: write # push the generated analysis to codeboarding/baseline + contents: write # commit the generated analysis to main actions: read # continue from an analysis an earlier run published id-token: write # identifies this repo to CodeBoarding's hosted tier steps: - uses: CodeBoarding/CodeBoarding-action@v1 with: mode: sync + codeboarding_analysis_location: in_place # CodeBoarding's free hosted tier. No secret to add: the run authenticates # with the GitHub OIDC token that `id-token: write` above grants. llm: hosted