Skip to content

Commit 8aebe97

Browse files
Add timeout and concurrency guards to workflows (#44)
1 parent 044d5ed commit 8aebe97

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/cron.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ on:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: psrt-ghsa-bot
13+
cancel-in-progress: false
14+
1115
jobs:
1216
cron:
1317
runs-on: ubuntu-latest
14-
name: "Run PSRT Advisory Bot"
18+
name: "Run PSRT GHSA Bot"
19+
timeout-minutes: 10
1520
steps:
1621
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1722
with:

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
lint:
1313
name: Lint
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 5
1516
steps:
1617
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1718
with:

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
test:
1313
name: Test on Python ${{ matrix.python-version }}
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 5
1516
strategy:
1617
fail-fast: false
1718
matrix:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "psrt-ghsa-bot"
33
version = "0.1.0"
4-
description = "GitHub bot for PSRT activities on GHSA"
4+
description = "GitHub bot for PSRT activities on GHSAs"
55
readme = "README.md"
66
requires-python = ">=3.14.0"
77
dependencies = [

src/psrt_ghsa_bot/app.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
load_dotenv()
1919

20-
if typing.TYPE_CHECKING:
21-
pass
22-
2320
PSRT_GITHUB_TEAM_ORG = "python"
2421
PSRT_GITHUB_TEAM_SLUG = "psrt"
2522
COMPLETION_TAGS = (

0 commit comments

Comments
 (0)