Skip to content

Commit b32a5d2

Browse files
authored
feat: centralize package quarantine policy (#35)
* feat: adopt shared quarantine policy * fix: restrict quarantine pruning to schedules * fix: enforce quarantine lockfile ingress
1 parent 19bc70d commit b32a5d2

3 files changed

Lines changed: 36 additions & 3 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Package quarantine policy
2+
3+
on:
4+
pull_request:
5+
merge_group:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
enforce:
12+
name: Enforce package quarantine
13+
if: github.repository == 'stella/tooling'
14+
permissions:
15+
contents: read
16+
uses: stella/.github/.github/workflows/quarantine-policy.yml@699affd63b2d956f71b9833fbed239245aff7e86
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Package quarantine prune
2+
3+
on:
4+
schedule:
5+
- cron: "37 * * * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
prune:
12+
name: Remove expired quarantine exceptions
13+
if: github.repository == 'stella/tooling'
14+
permissions:
15+
contents: read
16+
uses: stella/.github/.github/workflows/quarantine-prune.yml@699affd63b2d956f71b9833fbed239245aff7e86
17+
secrets:
18+
RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }}
19+
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}

bunfig.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
[install]
22
# 5-day quarantine: reject fresh package versions to reduce supply-chain risk.
33
minimumReleaseAge = 432_000
4-
minimumReleaseAgeExcludes = [
5-
"bun-types@1.4.0", # quarantine-expires: 2026-08-25T14:11:33.785Z
6-
]
4+
minimumReleaseAgeExcludes = []

0 commit comments

Comments
 (0)