Skip to content

Commit 24182ea

Browse files
committed
Minor improvement to action, and improved README
1 parent 2d37dfe commit 24182ea

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ This GitHub Action uses [patchwork-cli](https://docs.patched.codes/patchwork/qui
1616
name: Security AutoFix
1717
on:
1818
schedule:
19-
- cron: "0 0 * * *" # Run daily
19+
- cron: "0 0 1 * *" # Run once a month
2020
workflow_dispatch: # Allow manual triggers
2121

2222
jobs:
2323
autofix:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: patched-codes/action-autofix@0.0.2
27+
- uses: patched-codes/AutoFix@0.1.0
2828
with:
2929
github_token: ${{ secrets.GITHUB_TOKEN }}
3030
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
@@ -57,25 +57,25 @@ One of the following is required:
5757
### Basic Usage
5858

5959
```yaml
60-
- uses: patched-codes/action-autofix@0.0.2
60+
- uses: patched-codes/AutoFix@0.1.0
6161
with:
6262
patched_api_key: ${{ secrets.PATCHED_API_KEY }}
6363
```
6464

6565
### Using Custom Model
6666

6767
```yaml
68-
- uses: patched-codes/action-autofix@0.0.2
68+
- uses: patched-codes/AutoFix@0.1.0
6969
with:
70-
patched_api_key: ${{ secrets.PATCHED_API_KEY }}
70+
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
7171
model: "gpt-4"
7272
client_base_url: "https://api.openai.com/v1"
7373
```
7474

7575
### High Severity Only
7676

7777
```yaml
78-
- uses: patched-codes/action-autofix@0.0.2
78+
- uses: patched-codes/AutoFix@0.1.0
7979
with:
8080
patched_api_key: ${{ secrets.PATCHED_API_KEY }}
8181
severity: "high"

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Patchwork AutoFix'
1+
name: 'Patched AutoFix'
22
description: 'Run Autofix patchflow using patchwork-cli to automatically fix code vulnerabilities'
33
branding:
44
icon: 'shield'
@@ -34,7 +34,7 @@ inputs:
3434
branch_prefix:
3535
description: 'Prefix for the created branch'
3636
required: false
37-
default: 'patchwork-autofix/'
37+
default: 'patched-autofix/'
3838
disable_branch:
3939
description: 'Disable creating new branches'
4040
required: false
@@ -62,9 +62,9 @@ runs:
6262
uses: actions/cache@v3
6363
with:
6464
path: ~/.cache/pip
65-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
65+
key: ${{ runner.os }}-pip-patchwork-cli[security]
6666
restore-keys: |
67-
${{ runner.os }}-pip-
67+
${{ runner.os }}-pip-patchwork-cli[security]
6868
6969
- name: Install dependencies
7070
shell: bash

0 commit comments

Comments
 (0)