Edit .js and package.json files #112
Workflow file for this run
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
name: DepSafe | |
on: | |
pull_request_target: | |
types: [opened, reopened, synchronize] | |
release: | |
types: [published] | |
jobs: | |
detect-unsafe-pr: | |
runs-on: ubuntu-latest | |
name: Check a pull request | |
if: github.event_name == 'pull_request_target' | |
steps: | |
- name: Detect Unsafe PR | |
uses: supatsara-wat/[email protected] | |
with: | |
owner: ${{ github.repository_owner }} | |
repo: ${{ github.event.repository.name }} | |
pr_number: ${{ github.event.number }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
type: "check_pr" | |
alert_type: "comment" | |
check-unsafe-all: | |
runs-on: ubuntu-latest | |
name: Check all opened pull requests where a release was published | |
if: github.event_name == 'release' | |
steps: | |
- name: Check Unsafe PRs | |
uses: supatsara-wat/[email protected] | |
with: | |
owner: ${{ github.repository_owner }} | |
repo: ${{ github.event.repository.name }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
type: "check_all" | |
alert_type: "label" |