Skip to content

Commit ec4d343

Browse files
authored
Merge pull request #29 from rodneylab/ci__update_ci_config
ci update ci config
2 parents 46d8378 + 3965487 commit ec4d343

File tree

8 files changed

+51
-58
lines changed

8 files changed

+51
-58
lines changed

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Harden Runner
18-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
18+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
1919
with:
2020
egress-policy: audit
2121
disable-telemetry: true

.github/workflows/general.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Harden Runner
21-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
21+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
2222
with:
2323
egress-policy: audit
2424
disable-telemetry: true
2525
- name: Install Linux Dependencies
2626
run: sudo apt-get update
2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28-
- uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable
28+
- uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3
2929
- name: Run tests
3030
run: cargo test
3131
fmt:
3232
name: Rustfmt
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Harden Runner
36-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
36+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
3737
with:
3838
egress-policy: audit
3939
disable-telemetry: true
4040
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41-
- uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable
41+
- uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3
4242
with:
4343
components: rustfmt
4444
- name: Enforce formatting
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Harden Runner
50-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
50+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
5151
with:
5252
egress-policy: audit
5353
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -57,12 +57,12 @@ jobs:
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: Harden Runner
60-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
60+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
6161
with:
6262
egress-policy: audit
6363
disable-telemetry: true
6464
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
65-
- uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable
65+
- uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3
6666
with:
6767
components: clippy
6868
- name: Linting
@@ -78,7 +78,7 @@ jobs:
7878
- name: Install Linux Dependencies
7979
run: sudo apt-get update
8080
- name: Install ${{ matrix.msrv }}
81-
uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable
81+
uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3
8282
with:
8383
toolchain: ${{ matrix.msrv }}
8484
- name: generate lockfile
@@ -90,15 +90,15 @@ jobs:
9090
runs-on: ubuntu-latest
9191
steps:
9292
- name: Harden Runner
93-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
93+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
9494
with:
9595
egress-policy: audit
9696
disable-telemetry: true
9797
- name: Install Linux Dependencies
9898
run: sudo apt-get update
9999
- name: Checkout repository
100100
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
101-
- uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable
101+
- uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3
102102
with:
103103
components: llvm-tools-preview
104104
- name: Install grcov
@@ -110,7 +110,7 @@ jobs:
110110
- name: Generate code coverage
111111
run: grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o ./target/debug/
112112
- name: Upload coverage reports to Codecov
113-
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
113+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
114114
with:
115115
files: ./target/debug/lcov
116116
env:

.github/workflows/links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Harden Runner
10-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
10+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
1111
with:
1212
egress-policy: audit
1313
disable-telemetry: true
@@ -19,7 +19,7 @@ jobs:
1919
key: cache-lychee-${{ github.sha }}
2020
restore-keys: cache-lychee-
2121
- name: Run lychee
22-
uses: lycheeverse/lychee-action@f81112d0d2814ded911bd23e3beaa9dda9093915 # v2.1.0
22+
uses: lycheeverse/lychee-action@f796c8b7d468feb9b8c0a46da3fac0af6874d374 # v2.2.0
2323
with:
2424
args: "--base . --cache --max-cache-age 1d --exclude-path \"deny.toml\" . \"**/*.toml\" \"**/*.rs\" \"**/*.yml\""
2525
fail: true

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Harden Runner
14-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
14+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
1515
with:
1616
egress-policy: audit
1717
disable-telemetry: true
1818
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
19+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2020
with:
2121
python-version: '3.13'
22-
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
22+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2323
with:
2424
go-version: '>=1.18.0'
2525
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# actions: read
3030
steps:
3131
- name: Harden Runner
32-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
32+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
3333
with:
3434
egress-policy: audit
3535
disable-telemetry: true
@@ -58,13 +58,13 @@ jobs:
5858
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5959
# format to the repository Actions tab.
6060
- name: "Upload artifact"
61-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
61+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6262
with:
6363
name: SARIF file
6464
path: results.sarif
6565
retention-days: 5
6666
# Upload the results to GitHub's code scanning dashboard.
6767
- name: "Upload to code-scanning"
68-
uses: github/codeql-action/upload-sarif@babb554ede22fd5605947329c4d04d8e7a0b8155 # v3.27.7
68+
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
6969
with:
7070
sarif_file: results.sarif

.github/workflows/typos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Harden Runner
11-
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
11+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
1212
with:
1313
egress-policy: audit
1414
disable-telemetry: true
1515
- name: Checkout Actions Repository
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
- name: Check spelling of entire workspace
18-
uses: crate-ci/typos@2872c382bb9668d4baa5eade234dcbc0048ca2cf # v1.28.2
18+
uses: crate-ci/typos@685eb3d55be2f85191e8c84acb9f44d7756f84ab # v1.29.4

.pre-commit-config.yaml

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
11
repos:
2-
- hooks:
2+
- repo: https://github.com/commitizen-tools/commitizen
3+
rev: v4.1.1
4+
hooks:
35
- id: commitizen
46
stages:
57
- commit-msg
6-
repo: https://github.com/commitizen-tools/commitizen
7-
rev: v4.1.0
8-
- hooks:
8+
- repo: https://github.com/doublify/pre-commit-rust
9+
rev: v1.0
10+
hooks:
911
- id: fmt
1012
- id: cargo-check
1113
- id: clippy
12-
repo: https://github.com/doublify/pre-commit-rust
13-
rev: v1.0
14-
- hooks:
14+
- repo: https://github.com/gitleaks/gitleaks
15+
rev: v8.23.3
16+
hooks:
1517
- id: gitleaks
16-
repo: https://github.com/gitleaks/gitleaks
17-
rev: v8.21.2
18-
- hooks:
18+
- repo: https://github.com/google/yamlfmt
19+
rev: v0.15.0
20+
hooks:
1921
- id: yamlfmt
20-
repo: https://github.com/google/yamlfmt
21-
rev: v0.14.0
22-
- hooks:
23-
- args:
22+
- repo: https://github.com/pre-commit/pre-commit-hooks
23+
rev: v5.0.0
24+
hooks:
25+
- id: trailing-whitespace
26+
args:
2427
- --markdown-linebreak-ext=md
25-
id: trailing-whitespace
2628
- id: end-of-file-fixer
2729
- id: check-yaml
28-
- exclude: .vscode
29-
id: check-json
30+
- id: check-json
31+
exclude: .vscode
3032
- id: no-commit-to-branch
31-
repo: https://github.com/pre-commit/pre-commit-hooks
32-
rev: v5.0.0
33-
- hooks:
34-
- args:
35-
- --all-features
36-
- check
37-
id: cargo-deny
38-
repo: https://github.com/EmbarkStudios/cargo-deny
39-
rev: 0.16.3
33+
- repo: https://github.com/EmbarkStudios/cargo-deny
34+
rev: 0.16.4
35+
hooks:
36+
- id: cargo-deny
37+
args: ["--all-features", "check"]

dprint.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
{
2-
"json": {
3-
},
4-
"markdown": {
5-
},
6-
"toml": {
7-
},
8-
"excludes": [
9-
"**/*-lock.json"
10-
],
2+
"json": {},
3+
"markdown": {},
4+
"toml": {},
5+
"excludes": ["**/*-lock.json"],
116
"plugins": [
127
"https://plugins.dprint.dev/json-0.19.4.wasm",
138
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
14-
"https://plugins.dprint.dev/toml-0.6.3.wasm"
9+
"https://plugins.dprint.dev/toml-0.6.4.wasm"
1510
]
1611
}

0 commit comments

Comments
 (0)