Skip to content

Update index.js

Update index.js #94

Workflow file for this run

name: DepSafe
on:
pull_request_target:
types: [opened, reopened, synchronize]
release:
types: [published]
jobs:
detect-unsafe-pr:
runs-on: ubuntu-latest
name: Check pull request with changes
if: github.event_name == 'pull_request_target'
steps:
- name: Check PR
uses: supatsara-wat/DepSafe@release_feature
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
pr_number: ${{ github.event.number }}
token: ${{ secrets.GITHUB_TOKEN }}
type: "check_pr"
check-unsafe-release:
runs-on: ubuntu-latest
name: Check pull request with changes
if: github.event_name == 'release'
steps:
- name: Check Opened PRs
uses: supatsara-wat/DepSafe@release_feature
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
pr_number: ${{ github.event.number }}
token: ${{ secrets.GITHUB_TOKEN }}
type: "check_release"