mirror of
https://github.com/actions-rust-lang/audit.git
synced 2025-12-28 05:31:49 -05:00
Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2dc31fb5ef | ||
|
|
ca4f182e86 | ||
|
|
19c45e9a43 | ||
|
|
22e7edaffe | ||
|
|
c367d7a394 | ||
|
|
d8f9adf642 | ||
|
|
2d2ada1a62 | ||
|
|
73e05e72a7 | ||
|
|
ce625a3fb1 | ||
|
|
0273520156 | ||
|
|
01252679fb | ||
|
|
0ea49bd8cb | ||
|
|
b91ce6d80f | ||
|
|
3f91ab5f83 | ||
|
|
debd2dd3cc | ||
|
|
64f6d2e350 | ||
|
|
87ce76a59f | ||
|
|
f3aaeb714e | ||
|
|
d13447f935 | ||
|
|
bdd908fe01 | ||
|
|
3164457fe4 | ||
|
|
023bfd076f | ||
|
|
5e37004d2c | ||
|
|
06034075ba | ||
|
|
fe269d550e | ||
|
|
b6da146557 | ||
|
|
e661f5f79f | ||
|
|
6c5b44595d | ||
|
|
b4f705152a | ||
|
|
38e4be49ce | ||
|
|
c93937eff7 | ||
|
|
b890df83b8 | ||
|
|
8d89530feb | ||
|
|
7e63792ca8 | ||
|
|
229220ba5c | ||
|
|
0fd4d6ceb9 | ||
|
|
26cc152162 | ||
|
|
839e077185 | ||
|
|
a4304b40f7 | ||
|
|
de4a880f36 | ||
|
|
60557a6189 | ||
|
|
fc8955c20d | ||
|
|
5e0c395775 | ||
|
|
362dc829f3 | ||
|
|
ea1aefd179 | ||
|
|
0d6847edc7 | ||
|
|
058839aa82 |
@@ -1,6 +1,6 @@
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.12.0
|
||||
rev: 23.7.0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
@@ -14,19 +14,25 @@ repos:
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: v5.11.3
|
||||
rev: 5.12.0
|
||||
# https://github.com/psf/black/blob/main/docs/guides/using_black_with_other_tools.md
|
||||
hooks:
|
||||
- id: isort
|
||||
args: ["--profile=black"]
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.3.1
|
||||
rev: v3.10.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ["--py37-plus"]
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.991
|
||||
rev: v1.5.1
|
||||
hooks:
|
||||
- id: mypy
|
||||
additional_dependencies:
|
||||
- types-requests
|
||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||
rev: 0.24.1
|
||||
hooks:
|
||||
- id: check-dependabot
|
||||
- id: check-github-actions
|
||||
- id: check-github-workflows
|
||||
|
||||
12
CHANGELOG.md
12
CHANGELOG.md
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.1.8] - 2023-08-23
|
||||
|
||||
* Handle missing data in advisories better to prevent crashing (#40)
|
||||
|
||||
## [1.1.7] - 2023-05-12
|
||||
|
||||
* Update `cargo-audit` to 0.17.6
|
||||
|
||||
## [1.1.6] - 2023-03-24
|
||||
|
||||
* Update `cargo-audit` to 0.17.5
|
||||
|
||||
## [1.1.5] - 2022-12-22
|
||||
|
||||
* Fix duplicate issues for yanked crates.
|
||||
|
||||
@@ -37,12 +37,12 @@ runs:
|
||||
${{ 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.17.4
|
||||
key: cargo-audit-v0.17.6
|
||||
|
||||
- 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.17.4 --no-default-features
|
||||
run: cargo install cargo-audit --vers 0.17.6 --no-default-features
|
||||
shell: bash
|
||||
|
||||
- run: |
|
||||
|
||||
8
audit.py
8
audit.py
@@ -133,9 +133,13 @@ class Entry:
|
||||
table_parts = []
|
||||
for row in table:
|
||||
table_parts.append("| ")
|
||||
table_parts.append(row[0])
|
||||
if row[0] is not None:
|
||||
table_parts.append(row[0])
|
||||
table_parts.append(" | ")
|
||||
table_parts.append(row[1])
|
||||
if row[1] is not None:
|
||||
table_parts.append(row[1])
|
||||
else:
|
||||
table_parts.append("n/a")
|
||||
table_parts.append(" |\n")
|
||||
|
||||
return "".join(table_parts)
|
||||
|
||||
Reference in New Issue
Block a user