Skip to content

Commit ad8aaca

Browse files
authored
Merge pull request #47 from infinum/enhancement/add-dependabot-alert-autodismiss-1
Create dismiss-dev-only-dependabot-alerts.yml
2 parents 4537bc5 + 8495d35 commit ad8aaca

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dismiss Dependabot alerts for dependencies not used in production
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * 1" # Monday 06:00 UTC
6+
workflow_dispatch:
7+
inputs:
8+
dry-run:
9+
type: boolean
10+
default: true
11+
description: "When true, decisions are logged to the job summary but no alerts are dismissed."
12+
13+
jobs:
14+
dismiss:
15+
permissions:
16+
contents: read
17+
uses: infinum/android-github-actions-workflows/.github/workflows/dismiss-dev-only-dependabot-alerts.yml@main
18+
with:
19+
dry-run: ${{ inputs.dry-run || false }}
20+
client-id: ${{ vars.DEPENDABOT_DISMISSER_BOT_APP_ID }}
21+
secrets:
22+
app-private-key: ${{ secrets.DEPENDABOT_DISMISSER_BOT_PRIVATE_KEY }}

0 commit comments

Comments
 (0)