Repository navigation
adapters: asset-inlining infra + assets/MANIFEST.toml provenance #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,67 @@ | ||
| # Vendored frontend asset provenance. | ||
| # | ||
| # Every asset inlined into the generated `report.html` is listed here with | ||
| # its pinned version, source URL, SHA-256, and SPDX license. This file is | ||
| # the supply-chain artifact any auditor can read for the *frontend bundle* | ||
| # (paired with `Cargo.toml` + `Cargo.lock` + `deny.toml` for the Rust | ||
| # crate graph). | ||
| # Every asset inlined into cute-dbt's generated HTML report is listed here | ||
| # with its pinned version, canonical source URL, SHA-256 of the embedded | ||
| # bytes, and SPDX license. Paired with `Cargo.toml` + `Cargo.lock` + | ||
| # `deny.toml` (the Rust crate graph), this file is the complete | ||
| # supply-chain artifact an auditor reads for the frontend bundle. | ||
| # | ||
| # Skeleton at bootstrap; entries populated in PR 8a (#TBD) when the | ||
| # `include_str!` / `include_bytes!` embedding infrastructure lands. | ||
| # Integrity is enforced two ways, both of which fail the PR on drift: | ||
| # - `tests/assets_manifest.rs` — a `cargo test` asserting every listed | ||
| # asset exists on disk, its SHA-256 matches, its license is permissive, | ||
| # and no file under `assets/` is unlisted. | ||
| # - the `assets-manifest-gate` CI job — a structural grep mirroring | ||
| # `fixture-manifest-gate`. | ||
| # | ||
| # Update flow for a version bump: re-download from `source`, replace the | ||
| # file, update `version` + `sha256` here; the PR 9 headless-zero-egress | ||
| # test then re-validates that the new bundle still issues zero requests. | ||
| # | ||
| # Schema (each entry): | ||
| # [[asset]] | ||
| # name = "..." # human-readable name | ||
| # version = "..." # pinned version | ||
| # source = "https://..." # canonical download URL | ||
| # sha256 = "..." # hex SHA-256 of the embedded bytes | ||
| # license = "MIT" | "BSD-3-Clause" | ... # SPDX identifier | ||
| # | ||
| # Expected v0.1 entries (placeholder until PR 8a): | ||
| # - sakura ~1.5 (CSS, classless) | ||
| # - jquery 3.7.1 (JS, DataTables dep) | ||
| # - datatables 2.1.8 (JS + CSS, sort/filter/search) | ||
| # - mermaid 11.x (UMD bundle, securityLevel:'strict') | ||
| # name = "..." # library identifier (e.g. "mermaid") | ||
| # version = "..." # pinned upstream version | ||
| # path = "..." # filename within assets/ | ||
| # source = "https://..." # canonical download URL | ||
| # sha256 = "..." # hex SHA-256 of the embedded bytes | ||
| # license = "MIT" | ... # SPDX identifier (permissive only) | ||
|
|
||
| [[asset]] | ||
| name = "sakura" | ||
| version = "1.5.0" | ||
| path = "sakura-1.5.0.css" | ||
| source = "https://unpkg.com/sakura.css@1.5.0/css/sakura.css" | ||
| sha256 = "c997043b8e58936644e2bd47acb561c2f997a1167daf5706ab6ad2ca4fe9629c" | ||
| license = "MIT" | ||
|
|
||
| [[asset]] | ||
| name = "jquery" | ||
| version = "3.7.1" | ||
| path = "jquery-3.7.1.min.js" | ||
| source = "https://code.jquery.com/jquery-3.7.1.min.js" | ||
| sha256 = "fc9a93dd241f6b045cbff0481cf4e1901becd0e12fb45166a8f17f95823f0b1a" | ||
| license = "MIT" | ||
|
|
||
| [[asset]] | ||
| name = "datatables" | ||
| version = "2.1.8" | ||
| path = "datatables-2.1.8.min.js" | ||
| source = "https://cdn.datatables.net/2.1.8/js/dataTables.min.js" | ||
| sha256 = "69306f7b554a5a8ce68e8f4d6f613bdd1bcfe2df313962e7fc83cf5f6be5e085" | ||
| license = "MIT" | ||
|
|
||
| [[asset]] | ||
| name = "datatables" | ||
| version = "2.1.8" | ||
| path = "datatables-2.1.8.min.css" | ||
| source = "https://cdn.datatables.net/2.1.8/css/dataTables.dataTables.min.css" | ||
| sha256 = "10587c5eacd75926baec92990840987da4a8fb66b91c8c43ac955e7b174f21b0" | ||
| license = "MIT" | ||
|
|
||
| asset = [] | ||
| [[asset]] | ||
| name = "mermaid" | ||
| version = "11.15.0" | ||
| path = "mermaid-11.15.0.umd.min.js" | ||
| source = "https://cdn.jsdelivr.net/npm/mermaid@11.15.0/dist/mermaid.min.js" | ||
| sha256 = "70137e77bb273bb2ef972b86e8b0400cca8be53cb25bfc45911a186dc98665de" | ||
| license = "MIT" |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: breezy-bays-labs/cute-dbt
Length of output: 187
🏁 Script executed:
Repository: breezy-bays-labs/cute-dbt
Length of output: 182
🏁 Script executed:
Repository: breezy-bays-labs/cute-dbt
Length of output: 12115
🏁 Script executed:
Repository: breezy-bays-labs/cute-dbt
Length of output: 147
Harden
assets-manifest-gatepermissions and checkout action pinning.assets-manifest-gateusesactions/checkout@v4without pinning to a full commit SHA.persist-credentials: falseis set for checkout.permissions:block anywhere, so this job inherits broader token defaults.Suggested patch
assets-manifest-gate: @@ runs-on: ubuntu-latest timeout-minutes: 5 + permissions: + contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@<FULL_LENGTH_COMMIT_SHA> + with: + persist-credentials: false🧰 Tools
🪛 zizmor (1.25.2)
[warning] 311-311: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[warning] 299-379: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block
(excessive-permissions)
[error] 311-311: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents