Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Added PR generation capabilities to npm index pipeline #999

Merged
merged 2 commits into from
May 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/update-npm-index.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "Update npm index.json"
on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -9,6 +10,7 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
stale:
Expand All @@ -32,12 +34,14 @@ jobs:
run: |
npm run create-npm-index

- name: commit and push updated results
uses: github-actions-x/commit@722d56b8968bf00ced78407bbe2ead81062d8baa # v2.9
- name: Create Pull Request
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
commit-message: 'vuln: update npm index.json'
title: update npm index.json
body: 'update npm index.json. cc: @nodejs/security-wg'
assignees: ${{ github.actor }}
labels: security-wg-agenda
branch: npm-index-updated