-
Notifications
You must be signed in to change notification settings - Fork 0
Grahamc/init pullout #1
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
15 commits
Select commit
Hold shift + click to select a range
0e113ef
Add editor and git config
grahamc ce64882
Import the store types from attic-priv
grahamc 6b505c5
Rename the crate to flakehub-cache-types
grahamc ae41be2
nix-base32: use the crates.io release
grahamc 9e66a7b
Add crates.io metadata
grahamc 874fce9
Add a Nix flake
grahamc 7107e9d
ci: tests, clippy, fmt
grahamc c356fac
ci: cargo-deny and flake-checker
grahamc fd9d1ee
Publish to crates.io on tags
grahamc 4234bf8
Add dependabot
grahamc 8eebb67
README
grahamc 7ab605f
Fix clippy lints
grahamc 4cc9be3
checks: give the cxx test binary libstdc++ at runtime
grahamc bc7604d
A few nits and tests
grahamc fbebd18
Don't publish to crates.io
grahamc 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # EditorConfig configuration for flakehub-cache-types | ||
|
|
||
| # Top-most EditorConfig file | ||
| root = true | ||
|
|
||
| # Unix-style newlines with a newline ending every file, utf-8 charset | ||
| [*] | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| charset = utf-8 | ||
|
|
||
| # Rust | ||
| [*.rs] | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
| # Misc | ||
| [*.{yaml,yml,md,nix,toml}] | ||
| indent_style = space | ||
| indent_size = 2 |
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| use flake |
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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: cargo | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| schedule: | ||
| interval: weekly |
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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| merge_group: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| checks: | ||
| name: Nix checks (${{ matrix.os }}) | ||
| permissions: | ||
| contents: read | ||
| # For flakehub-cache-action | ||
| id-token: write | ||
| strategy: | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: DeterminateSystems/nix-installer-action@main | ||
| with: | ||
| determinate: true | ||
| - uses: DeterminateSystems/flakehub-cache-action@main | ||
| - name: Build, test, clippy, rustfmt | ||
| run: nix flake check -L | ||
| - name: Check editorconfig conformance | ||
| run: nix develop --command editorconfig-checker | ||
|
|
||
| cargo-deny: | ||
| name: Advisories, licenses, sources | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| # For flakehub-cache-action | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: DeterminateSystems/nix-installer-action@main | ||
| with: | ||
| determinate: true | ||
| - uses: DeterminateSystems/flakehub-cache-action@main | ||
| - run: nix develop --command cargo deny check | ||
|
|
||
| flake-checker: | ||
| name: Check flake.lock health | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: DeterminateSystems/flake-checker-action@main | ||
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| .direnv | ||
|
|
||
| /target | ||
| result | ||
| result-* |
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: DeterminateSystems/flakehub-cache-types
Length of output: 2272
🏁 Script executed:
Repository: DeterminateSystems/flakehub-cache-types
Length of output: 2205
Security Misconfiguration (CWE-829): Inclusion of Functionality from Untrusted Control Sphere
Reachability: External · Exploitability: Difficult
Pin all GitHub Actions to immutable commit SHAs.
This workflow grants
id-token: writeat lines 9–11. Pin everyuses:reference, includingactions/checkout, the DeterminateSystems actions, andflake-checker-action, to a reviewed full commit SHA. Document each action version in a comment.🧰 Tools
🪛 zizmor (1.28.0)
[warning] 23-23: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
🤖 Prompt for AI Agents