Skip to content

Commit ca8f311

Browse files
chore: enable dep-cooldown blocking check
1 parent 767535c commit ca8f311

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/dep-cooldown.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: dep-cooldown
2+
3+
# Calls the org-shared cooldown checker in atlanhq/.github.
4+
# Fails the PR if any newly-introduced dependency version is younger
5+
# than 7 days. Covers both ecosystems:
6+
# - JS: package-lock.json, pnpm-lock.yaml, yarn.lock
7+
# - Python: uv.lock, poetry.lock, requirements*.txt
8+
# Bypass: add the 'security' label to the PR (audited).
9+
#
10+
# This file is uniform across every consumer repo. To change policy,
11+
# edit the reusable workflow in atlanhq/.github.
12+
13+
on:
14+
# Trigger on every PR regardless of base branch. Some repos use master /
15+
# staging / develop as default; hardcoding 'main' would silently skip them.
16+
pull_request:
17+
types: [opened, synchronize, reopened, labeled, unlabeled]
18+
19+
permissions:
20+
contents: read
21+
pull-requests: read
22+
23+
jobs:
24+
cooldown:
25+
uses: atlanhq/.github/.github/workflows/reusable-dep-cooldown.yml@main
26+
with:
27+
min-age-days: 7
28+
# Forwards SLACK_DEP_COOLDOWN_WEBHOOK to the reusable workflow so
29+
# cooldown failures alert in #community-security with PR + deps + run-log.
30+
secrets: inherit

0 commit comments

Comments
 (0)