Skip to content

Commit

Permalink
chore: add snyk_token to yml
Browse files Browse the repository at this point in the history
  • Loading branch information
csg01123119 committed Sep 5, 2023
1 parent 7e49b7c commit a208d03
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeCov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}
SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
steps:
- uses: actions/checkout@v2
- name: test and report upload
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/dev_node_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
with:
ref: develop
- name: browser build and test
run: |
curl cip.cc
Expand All @@ -56,16 +54,14 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [10.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
with:
ref: develop
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
Expand All @@ -89,16 +85,14 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [12.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
with:
ref: develop
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
Expand All @@ -122,7 +116,7 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [14.x]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/master_node_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [14.x]
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [10.x]
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [12.x]
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [14.x]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} # semantic-release和create-pull-request.js需要
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # 只有semantic-release需要
SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}

SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
strategy:
matrix:
node-version: [14.x]
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ jobs:
security:
environment: ali_oss_AK
runs-on: ubuntu-latest
env:
SNYK_TOKEN: ${{ secrets.SNYK_KEY }}
steps:
- uses: actions/checkout@v2

- run: npm install
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_KEY }}

0 comments on commit a208d03

Please sign in to comment.