Skip to content

Commit 31ad786

Browse files
cherry pick and guard dog workflow added (#48)
1 parent 98d7c47 commit 31ad786

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
name: Auto Cherry-Pick from Upstream
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
base_branch:
8+
description: "Base branch to create the PR against"
9+
required: true
10+
default: "main"
11+
package_manager:
12+
description: "Specify package manager (npm or yarn)"
13+
required: false
14+
default: "yarn"
15+
script:
16+
description: "Specify a script to run after audit fix"
17+
required: false
18+
default: "yarn run all"
19+
20+
permissions:
21+
contents: write
22+
pull-requests: write
23+
packages: read
24+
issues: write
25+
26+
jobs:
27+
audit-fix:
28+
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@upstream-Changes-CherryPick
29+
with:
30+
original-owner: "tj-actions"
31+
repo-name: "changed-files"
32+
base_branch: ${{ inputs.base_branch }}
33+
package_manager: "yarn"
34+
script: ${{ inputs.script || 'yarn run all' }}

.github/workflows/guarddog.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Run GuardDog Scan on PRs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
call-guarddog-scan:
14+
uses: step-security/reusable-workflows/.github/workflows/guarddog.yml@v1

0 commit comments

Comments
 (0)