Skip to content

fix(ci): upgrade npm for OIDC trusted publishing support #6

fix(ci): upgrade npm for OIDC trusted publishing support

fix(ci): upgrade npm for OIDC trusted publishing support #6

name: Dependabot Security Label
on:
pull_request:
types: [opened]
permissions:
pull-requests: write
jobs:
label:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Add security label
if: steps.metadata.outputs.ghsa-id != ''
run: gh pr edit "$PR_URL" --add-label "security"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}