Skip to content

Commit dd74440

Browse files
authored
Merge branch 'main' into fix/issue-1682-dotted-ts-imports
2 parents 834e4f0 + 9b24332 commit dd74440

8 files changed

Lines changed: 1268 additions & 20 deletions

File tree

‎.github/workflows/_build.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
9898
- name: Attest release candidate provenance
9999
if: ${{ inputs.attest }}
100-
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
100+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
101101
with:
102102
subject-path: |
103103
release-candidates/${{ matrix.goos }}-${{ matrix.goarch }}/candidate-provenance.tsv
@@ -155,7 +155,7 @@ jobs:
155155
156156
- name: Attest release candidate provenance
157157
if: ${{ inputs.attest }}
158-
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
158+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
159159
with:
160160
subject-path: |
161161
release-candidates/windows-amd64/candidate-provenance.tsv
@@ -217,7 +217,7 @@ jobs:
217217
218218
- name: Attest release candidate provenance
219219
if: ${{ inputs.attest }}
220-
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
220+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
221221
with:
222222
subject-path: |
223223
release-candidates/windows-arm64/candidate-provenance.tsv
@@ -280,7 +280,7 @@ jobs:
280280
281281
- name: Attest release candidate provenance
282282
if: ${{ inputs.attest }}
283-
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
283+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
284284
with:
285285
subject-path: |
286286
release-candidates/linux-${{ matrix.arch }}-portable/candidate-provenance.tsv
@@ -432,7 +432,7 @@ jobs:
432432
433433
- name: Attest selected containers and decision evidence
434434
if: ${{ inputs.attest }}
435-
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
435+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
436436
with:
437437
subject-path: |
438438
release-containers/**/*.tar.gz

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev
3030

3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
32+
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
3333
with:
3434
languages: c-cpp
3535
build-mode: manual
@@ -38,6 +38,6 @@ jobs:
3838
run: scripts/build.sh
3939

4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
41+
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
4242
with:
4343
category: "/language:c-cpp"

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jobs:
202202
run: scripts/ci/append-legacy-alias-checksums.sh checksums.txt
203203

204204
- name: Attest checksum provenance
205-
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
205+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
206206
with:
207207
subject-path: checksums.txt
208208

‎.github/workflows/scorecard.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
publish_results: true
2828

2929
- name: Upload SARIF results
30-
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
30+
uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4
3131
with:
3232
sarif_file: results.sarif

‎src/mcp/mcp.c‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7706,7 +7706,28 @@ static void try_artifact_bootstrap(const char *project_name, const char *repo_pa
77067706
project_db_path(project_name, db_buf, sizeof(db_buf));
77077707
if (cbm_file_size(db_buf) < 0 && cbm_artifact_exists(repo_path)) {
77087708
cbm_log_info("index.artifact_bootstrap", "project", project_name);
7709-
cbm_artifact_import(repo_path, db_buf);
7709+
/* An imported artifact is trusted for graph CONTENT as-is — nothing
7710+
* verifies that its nodes/edges describe the code they claim to. What
7711+
* has been limiting the blast radius is mechanical, not a check: every
7712+
* imported row carries the EXPORTER's mtime, so the first incremental
7713+
* run re-parses ~everything and auto-scrubs a poisoned artifact at a
7714+
* clone time the producer cannot predict. That exposure is transient
7715+
* and self-healing.
7716+
*
7717+
* cbm_artifact_reconcile_hashes deliberately trades part of that away
7718+
* for the speed the artifact is supposed to deliver (#885): rows it
7719+
* restamps are no longer re-parsed, so poisoned nodes for those files
7720+
* persist until the file changes — a DURABLE exposure gated on a
7721+
* producer-written marker. It stays acceptable only because the marker
7722+
* alone never suffices: each restamped row must additionally be proven
7723+
* unchanged by the LOCAL git against a commit present in this clone.
7724+
* Read the trade-off note in artifact.h before widening it.
7725+
*
7726+
* Best-effort: a -1 return leaves every row foreign and falls back to
7727+
* today's behavior, so a failure here can never fail the import. */
7728+
if (cbm_artifact_import(repo_path, db_buf) == 0) {
7729+
(void)cbm_artifact_reconcile_hashes(repo_path, db_buf, project_name);
7730+
}
77107731
}
77117732
}
77127733

0 commit comments

Comments
 (0)