Skip to content

Commit

Permalink
moved Security action to its own workflow due to secrets limitation o…
Browse files Browse the repository at this point in the history
…n PRs from forks.
  • Loading branch information
lquixada committed Mar 12, 2021
1 parent 2bd5425 commit 1cd5110
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,3 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: make lint

security:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install
- run: make secure
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Based on https://docs.github.com/en/actions/guides/publishing-nodejs-packages#publishing-packages-to-npm-and-github-packages
name: Release

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Security

on:
push:
branches: [ main ]

jobs:
security:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install
- run: make secure
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit 1cd5110

Please sign in to comment.