Skip to content

Commit 21f04d3

Browse files
author
Jonathan D.A. Jewell
committed
fix: update MSRV to 1.85.0 and fix workflow issues
- Update MSRV from 1.75.0 to 1.85.0 (required for Cargo.lock v4) - Fix EditorConfig indentation in src/xray/mod.rs - Fix TruffleHog configuration (use --max-depth instead of --since-commit) - Use version tags instead of SHA pins for codeql-action (Scorecard verification) - Update MSRV in Cargo.toml, README, and rust-ci.yml workflow
1 parent 371b084 commit 21f04d3

7 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@33119e582d3ab4ed79c2610af108cb08ff983917 # v3
30+
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
3333

3434
- name: Autobuild
35-
uses: github/codeql-action/autobuild@33119e582d3ab4ed79c2610af108cb08ff983917 # v3
35+
uses: github/codeql-action/autobuild@v3
3636

3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@33119e582d3ab4ed79c2610af108cb08ff983917 # v3
38+
uses: github/codeql-action/analyze@v3
3939
with:
4040
category: "/language:${{matrix.language}}"

.github/workflows/quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: trufflesecurity/trufflehog@e9734c1ff25106f68d4266f0b09c1fcfc915dad1 # main
2525
with:
2626
path: ./
27-
extra_args: --since-commit HEAD~10 --only-verified
27+
extra_args: --only-verified --max-depth=10
2828

2929
editorconfig:
3030
name: EditorConfig Check

.github/workflows/rust-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ jobs:
5353
echo "✅ Zero warnings"
5454
5555
msrv:
56-
name: Check MSRV (1.75.0)
56+
name: Check MSRV (1.85.0)
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: Checkout code
6060
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
6161

62-
- name: Install Rust 1.75.0
62+
- name: Install Rust 1.85.0
6363
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
6464
with:
65-
toolchain: 1.75.0
65+
toolchain: 1.85.0
6666

6767
- name: Cache cargo registry
6868
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
publish_results: true
3232

3333
- name: Upload to code-scanning
34-
uses: github/codeql-action/upload-sarif@33119e582d3ab4ed79c2610af108cb08ff983917 # v3
34+
uses: github/codeql-action/upload-sarif@v3
3535
with:
3636
sarif_file: results.sarif

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
name = "panic-attacker"
44
version = "1.0.0"
55
edition = "2021"
6+
rust-version = "1.85.0"
67
authors = ["Jonathan D.A. Jewell <jonathan.jewell@open.ac.uk>"]
78
license = "PMPL-1.0-or-later"
89
description = "Universal stress testing and logic-based bug signature detection"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/hyperpolymath/panic-attacker/badge)](https://securityscorecards.dev/viewer/?uri=github.com/hyperpolymath/panic-attacker)
66
[![codecov](https://codecov.io/gh/hyperpolymath/panic-attacker/branch/main/graph/badge.svg)](https://codecov.io/gh/hyperpolymath/panic-attacker)
77
[![License: PMPL](https://img.shields.io/badge/License-PMPL--1.0--or--later-blue.svg)](LICENSE)
8-
[![MSRV](https://img.shields.io/badge/MSRV-1.75.0-blue)](Cargo.toml)
8+
[![MSRV](https://img.shields.io/badge/MSRV-1.85.0-blue)](Cargo.toml)
99

1010
Universal stress testing and logic-based bug signature detection tool.
1111

@@ -78,7 +78,7 @@ cargo install --path .
7878

7979
### Requirements
8080

81-
- Rust 1.75.0 or later
81+
- Rust 1.85.0 or later
8282
- Cargo
8383

8484
## Quick Start
@@ -338,4 +338,4 @@ If you use panic-attacker in your research, please cite:
338338

339339
---
340340

341-
**Status**: Active development | **Version**: 0.2.0 | **MSRV**: 1.75.0
341+
**Status**: Active development | **Version**: 0.2.0 | **MSRV**: 1.85.0

src/xray/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub fn analyze_verbose<P: AsRef<Path>>(target: P) -> Result<XRayReport> {
5050
for (rank, (risk, fs)) in scored.iter().take(10).enumerate() {
5151
println!(
5252
" {}. {} (risk: {}, lines: {}, unsafe: {}, panics: {}, \
53-
unwraps: {}, alloc: {}, io: {}, threads: {})",
53+
unwraps: {}, alloc: {}, io: {}, threads: {})",
5454
rank + 1,
5555
fs.file_path,
5656
risk,

0 commit comments

Comments
 (0)