Skip to content

Commit

Permalink
35 Add github actions for snyk and dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
cpreisinger committed Jul 18, 2024
1 parent 44a0ef7 commit ae7d625
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
target-branch: "production"
schedule:
interval: weekly
ignore:
- dependency-name: "rails"
versions: ["~> 6.0.0"]
35 changes: 35 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches:
- dev
- staging
- production
pull_request:
branches:
- dev
- staging
- production

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.14.0'

- name: Install Snyk
run: npm install -g snyk

- name: Authenticate Snyk
run: snyk auth ${{ secrets.SNYK_TOKEN }}

- name: Run Snyk to check for vulnerabilities
run: snyk test

0 comments on commit ae7d625

Please sign in to comment.