-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 Add github actions for snyk and dependabot
- Loading branch information
1 parent
44a0ef7
commit ae7d625
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |