-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 1.03 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
39
name: DepSafe
on:
pull_request_target:
types: [opened, reopened, synchronize]
on:
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"