mirror of
https://github.com/actions-rust-lang/audit.git
synced 2025-12-28 05:31:49 -05:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5172a3ea85 | ||
|
|
330429446f | ||
|
|
c2cbc39d10 | ||
|
|
74931db5cd | ||
|
|
5d7f19dca3 | ||
|
|
5145399af2 | ||
|
|
bef751aae3 | ||
|
|
f62ab55884 | ||
|
|
71ed029bec | ||
|
|
90988942a7 | ||
|
|
ac36165976 | ||
|
|
59b495571e | ||
|
|
64aafa27ea |
2
.github/workflows/autotag-releases.yml
vendored
2
.github/workflows/autotag-releases.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Get version from tag
|
||||
id: tag_name
|
||||
run: |
|
||||
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/}
|
||||
echo "current_version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
- name: Create and push tags
|
||||
run: |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.6.0
|
||||
rev: 22.10.0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
@@ -20,12 +20,12 @@ repos:
|
||||
- id: isort
|
||||
args: ["--profile=black"]
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.37.3
|
||||
rev: v3.0.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ["--py37-plus"]
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.971
|
||||
rev: v0.982
|
||||
hooks:
|
||||
- id: mypy
|
||||
additional_dependencies:
|
||||
|
||||
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.1.1] - 2022-10-13
|
||||
|
||||
### Changed
|
||||
|
||||
* Switch from set-output to $GITHUB_OUTPUT to avoid warning
|
||||
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
||||
|
||||
## [1.1.0] - 2022-08-14
|
||||
|
||||
### Added
|
||||
|
||||
@@ -13,10 +13,18 @@ name: "Audit Dependencies"
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
# Run if workflow changes
|
||||
- '.github/workflows/audit.yml'
|
||||
# Run on changed dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# Run if the configuration file changes
|
||||
- '**/audit.toml'
|
||||
# Rerun periodicly to pick up new advisories
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
# Run manually
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: read-all
|
||||
|
||||
|
||||
7
audit.py
7
audit.py
@@ -135,11 +135,15 @@ class Entry:
|
||||
advisory = self.entry["advisory"]
|
||||
|
||||
entry_table = self._entry_table()
|
||||
# Replace the @ with a ZWJ to avoid triggering markdown autolinks
|
||||
# Otherwise GitHub will interpret the @ as a mention
|
||||
description = advisory["description"].replace("@", "@\u200d")
|
||||
|
||||
md = f"""## {self.entry_type.icon()} {advisory['id']}: {advisory['title']}
|
||||
|
||||
{entry_table}
|
||||
|
||||
{advisory['description']}
|
||||
{description}
|
||||
"""
|
||||
return md
|
||||
|
||||
@@ -189,7 +193,6 @@ class GitHubClient:
|
||||
list_issues_request = requests.get(
|
||||
self.issues_url, headers=self.issue_headers, params=params
|
||||
)
|
||||
print(f"DBG: {list_issues_request.status_code=}")
|
||||
if list_issues_request.status_code == 200:
|
||||
self.existing_issues.extend(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user