Skip to content

Commit d6dc1ea

Browse files
Add Sonatype Guide AGP workflow
1 parent 69741ef commit d6dc1ea

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/agp.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#
2+
# Sonatype Guide - Agentic Patches Workflow
3+
# This workflow was automatically created by the Sonatype Guide GitHub App.
4+
# Learn more: https://guide.sonatype.com
5+
#
6+
7+
name: Sonatype Guide - Agentic Patches
8+
9+
on:
10+
workflow_dispatch:
11+
inputs:
12+
mode:
13+
description: 'Run mode'
14+
required: false
15+
default: 'standard'
16+
type: choice
17+
options:
18+
- standard
19+
- security
20+
vulnerabilities:
21+
description: 'Vulnerable packages JSON (for security mode)'
22+
required: false
23+
type: string
24+
25+
concurrency:
26+
group: agp-${{ github.ref }}
27+
cancel-in-progress: false
28+
29+
jobs:
30+
agp:
31+
runs-on: ubuntu-latest
32+
permissions:
33+
contents: write
34+
pull-requests: write
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
40+
- name: Run Sonatype Guide AGP
41+
uses: sonatype/agp-action@v1
42+
with:
43+
mode: ${{ inputs.mode }}
44+
vulnerabilities: ${{ inputs.vulnerabilities }}
45+
create-pr: true
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)