Compare commits

...

6 Commits

Author SHA1 Message Date
Jonas Bushart
5308f89d29 Update cargo-audit to 0.19.0 2024-02-03 22:23:31 +01:00
Jonas Bushart
65c5146921 Merge pull request #63 from lwshang/patch-1 2024-02-03 22:19:25 +01:00
Jonas Bushart
6e072ef47a Merge pull request #64 from actions-rust-lang/pre-commit-ci-update-config 2024-01-29 18:30:09 +01:00
pre-commit-ci[bot]
8001bc456e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-29 17:26:11 +00:00
pre-commit-ci[bot]
cbfe81d58f [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1)
2024-01-29 17:26:02 +00:00
Linwei Shang
89b10d9af6 Upgrade actions/cache to v4
GitHub is deprecating node16 (cache@v3 using).
2024-01-26 14:40:23 -05:00
4 changed files with 13 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks

View File

@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.1.13] - 2024-02-03
* Update `cargo-audit` to 0.19.0
## [1.1.12] - 2024-01-20
* Fix default of `file` argument to make it work again for repositories without `Cargo.lock` checked in.

View File

@@ -34,19 +34,19 @@ runs:
run: echo "cargohome=${CARGO_HOME:-$HOME/.cargo}" >> $GITHUB_OUTPUT
shell: bash
id: cargo-home
- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache
with:
path: |
${{ steps.cargo-home.outputs.cargohome }}/bin/cargo-audit*
${{ steps.cargo-home.outputs.cargohome }}/.crates.toml
${{ steps.cargo-home.outputs.cargohome }}/.crates2.json
key: cargo-audit-v0.18.3
key: cargo-audit-v0.19.0
- name: Install cargo-audit
if: steps.cache.outputs.cache-hit != 'true'
# Update both this version number and the cache key
run: cargo install cargo-audit --vers 0.18.3 --no-default-features
run: cargo install cargo-audit --vers 0.19.0 --no-default-features
shell: bash
- run: |

View File

@@ -97,9 +97,11 @@ class Entry:
table.append(
(
"Patched Versions",
" OR ".join(self.entry["versions"]["patched"])
if len(self.entry["versions"]["patched"]) > 0
else "n/a",
(
" OR ".join(self.entry["versions"]["patched"])
if len(self.entry["versions"]["patched"]) > 0
else "n/a"
),
)
)
if len(self.entry["versions"]["unaffected"]) > 0: