-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: add update core/npm indexes
- Loading branch information
Showing
2 changed files
with
76 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,38 @@ | ||
name: "Update core index.json" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'vuln/core/*.json' | ||
- '!vuln/core/index.json' | ||
|
||
permissions: [read, write] | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install deps | ||
run: | | ||
npm install | ||
- name: Update core index.json | ||
run: | | ||
npm run update-core-index | ||
- name: commit and push updated results | ||
uses: github-actions-x/commit@v2.9 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
push-branch: 'main' | ||
commit-message: 'vuln: update core index.json' | ||
rebase: 'true' | ||
files: vuln/core/index.json | ||
name: Github Actions |
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,38 @@ | ||
name: "Update npm index.json" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'vuln/npm/*.json' | ||
- '!vuln/npm/index.json' | ||
|
||
permissions: [read, write] | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install deps | ||
run: | | ||
npm install | ||
- name: Update npm index.json | ||
run: | | ||
npm run update-npm-index | ||
- name: commit and push updated results | ||
uses: github-actions-x/commit@v2.9 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
push-branch: 'main' | ||
commit-message: 'vuln: update npm index.json' | ||
rebase: 'true' | ||
files: vuln/npm/index.json | ||
name: Github Actions |