Compare commits

..

13 Commits

Author SHA1 Message Date
Jonas Bushart
5172a3ea85 Switch from set-output to $GITHUB_OUTPUT
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-13 20:57:51 +02:00
Jonas Bushart
330429446f Merge pull request #8 from actions-rust-lang/pre-commit-ci-update-config 2022-10-10 21:18:28 +02:00
pre-commit-ci[bot]
c2cbc39d10 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0)
- [github.com/asottile/pyupgrade: v2.38.2 → v3.0.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.0.0)
- [github.com/pre-commit/mirrors-mypy: v0.981 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v0.982)
2022-10-10 18:32:56 +00:00
Jonas Bushart
74931db5cd Merge pull request #7 from actions-rust-lang/pre-commit-ci-update-config 2022-10-03 20:28:23 +02:00
pre-commit-ci[bot]
5d7f19dca3 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-mypy: v0.971 → v0.981](https://github.com/pre-commit/mirrors-mypy/compare/v0.971...v0.981)
2022-10-03 18:06:24 +00:00
Jonas Bushart
5145399af2 Merge pull request #6 from actions-rust-lang/pre-commit-ci-update-config 2022-09-26 20:26:57 +02:00
pre-commit-ci[bot]
bef751aae3 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2)
2022-09-26 18:15:28 +00:00
Jonas Bushart
f62ab55884 Merge pull request #5 from actions-rust-lang/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-09-19 21:56:36 +02:00
pre-commit-ci[bot]
71ed029bec [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.37.3 → v2.38.0](https://github.com/asottile/pyupgrade/compare/v2.37.3...v2.38.0)
2022-09-19 18:17:15 +00:00
Jonas Bushart
90988942a7 Merge pull request #4 from actions-rust-lang/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-09-06 12:49:18 +02:00
pre-commit-ci[bot]
ac36165976 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0)
2022-09-05 18:14:32 +00:00
Jonas Bushart
59b495571e Better example workflow
Include more trigger condition in the example workflow.
2022-08-15 15:50:35 +02:00
Jonas Bushart
64aafa27ea Prevent GitHub from autolinking usernames 2022-08-14 16:29:35 +00:00
5 changed files with 24 additions and 6 deletions

View File

@@ -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: |

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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(
[