-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (34 loc) · 1.06 KB
/
pr-metadata.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/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"
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/DepSafe@release_feature
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
token: ${{ secrets.GITHUB_TOKEN }}
type: "check_all"
alert_type: "label"