Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test-cedarling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
rust_tests:
runs-on: ubuntu-latest
steps:
- name: Harden Runner

Check warning on line 22 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

22:5 [indentation] wrong indentation: expected 6 but found 4
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0

Check warning on line 23 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

23:81 [line-length] line too long (90 > 80 characters)
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -29,14 +29,14 @@
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # stable

Check warning on line 32 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

32:81 [line-length] line too long (84 > 80 characters)
with:
toolchain: stable
components: clippy
- name: Ensure clippy is installed
run: rustup component add --toolchain stable clippy
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1

Check warning on line 39 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

39:81 [line-length] line too long (81 > 80 characters)
with:
workspaces: jans-cedarling
- name: Run Tests (without default features)
Expand All @@ -56,13 +56,13 @@
cargo_audit:
runs-on: ubuntu-latest
steps:
- name: Harden Runner

Check warning on line 59 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

59:5 [indentation] wrong indentation: expected 6 but found 4
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0

Check warning on line 60 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

60:81 [line-length] line too long (90 > 80 characters)
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Rust
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # stable

Check warning on line 65 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

65:81 [line-length] line too long (84 > 80 characters)
with:
toolchain: stable
- name: Get week stamp for advisory DB cache key
Expand All @@ -72,16 +72,16 @@
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cargo/advisory-db
# Refresh weekly; advisory-db- fallback reuses the most recent weekly snapshot.

Check warning on line 75 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

75:81 [line-length] line too long (87 > 80 characters)
key: advisory-db-${{ steps.date.outputs.week }}
restore-keys: advisory-db-
- name: Install cargo-audit
uses: taiki-e/install-action@9bcaee1dcae34154180f412e2fa69355a7cda9f6 # v2.82.6

Check warning on line 79 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

79:81 [line-length] line too long (85 > 80 characters)
with:
tool: cargo-audit
- name: Run cargo-audit
working-directory: jans-cedarling
# rustsec/audit-check uses the GitHub API to fetch the advisory DB and hits

Check warning on line 84 in .github/workflows/test-cedarling.yml

View workflow job for this annotation

GitHub Actions / Lint and Validate

84:81 [line-length] line too long (81 > 80 characters)
# rate limits on PRs. Running cargo-audit directly with a cached advisory DB
# avoids the API calls entirely.
# RUSTSEC-2023-0071: `rsa` Marvin timing sidechannel affects RSA decryption.
Expand Down Expand Up @@ -140,11 +140,11 @@
- name: Install dylint
run: |
export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH"
cargo binstall cargo-dylint --version 5.0.0 --locked --no-confirm
cargo binstall dylint-link --version 5.0.0 --locked --no-confirm
cargo binstall cargo-dylint --version 6.3.0 --locked --no-confirm
cargo binstall dylint-link --version 6.3.0 --locked --no-confirm
if ! which dylint-link > /dev/null 2>&1; then
echo "dylint-link not found via binstall, falling back to cargo install"
cargo install dylint-link --version 5.0.0 --locked
cargo install dylint-link --version 6.3.0 --locked
fi
echo "dylint-link location: $(which dylint-link)"
- name: Run Tests
Expand Down
4 changes: 2 additions & 2 deletions jans-cedarling/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions jans-cedarling/custom-lints/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ crate-type = ["cdylib"]

[dependencies]
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "20ce69b9a63bcd2756cd906fe0964d1e901e042a" }
dylint_linting = "5.0.0"
dylint_linting = "6.3.0"

[dev-dependencies]
dylint_testing = "5.0.0"
dylint_testing = "6.3.0"

[package.metadata.rust-analyzer]
rustc_private = true
Loading