Skip to content

Commit

Permalink
Actions: Config dependabot on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleecodes committed Jun 3, 2024
1 parent fb6fea7 commit 41a87a2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ updates:
interval: "weekly"
time: "09:00"
timezone: "Europe/London"

Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow opens issues for pull requests opened by dependabot.
# See for more info: https://github.com/actions/dependency-review-action

name: Create Dependabot Issues # from pull requests

on:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/dependabot-pr-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow enables dependency scans on pull requests.
# When changes in dependencies are detected, it will raise an error
# if any vulnerabilities or invalid licenses are introduced.
# See for more info: https://github.com/actions/dependency-review-action

name: "Dependency Review"
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
- name: "Dependency Review"
uses: actions/dependency-review-action@v4
with:
# fails when moderate vulnerabilities are deteched
fail-on-severity: moderate

0 comments on commit 41a87a2

Please sign in to comment.