Skip to content

Commit ebce024

Browse files
authored
Merge pull request #3 from CodeAnt-AI/sha-fix
sha fixes
2 parents 676d228 + 4b804f8 commit ebce024

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/checkout@v3
3838

3939
- name: Run CodeAnt CI Scan
40-
uses: CodeAnt-AI/[email protected].1
40+
uses: CodeAnt-AI/[email protected].6
4141
with:
4242
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
4343
```
@@ -48,7 +48,7 @@ Customize the scan with additional options:
4848
4949
```yaml
5050
- name: Run CodeAnt CI Scan
51-
uses: CodeAnt-AI/[email protected].1
51+
uses: CodeAnt-AI/[email protected].6
5252
with:
5353
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
5454
api_base: 'https://api.codeant.ai'
@@ -116,7 +116,7 @@ jobs:
116116
runs-on: ubuntu-latest
117117
steps:
118118
- uses: actions/checkout@v3
119-
- uses: CodeAnt-AI/[email protected].1
119+
- uses: CodeAnt-AI/[email protected].6
120120
with:
121121
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
122122
```
@@ -135,15 +135,15 @@ jobs:
135135
runs-on: ubuntu-latest
136136
steps:
137137
- uses: actions/checkout@v3
138-
- uses: CodeAnt-AI/[email protected].1
138+
- uses: CodeAnt-AI/[email protected].6
139139
with:
140140
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
141141
```
142142

143143
### Scan Specific Directories
144144

145145
```yaml
146-
- uses: CodeAnt-AI/[email protected].1
146+
- uses: CodeAnt-AI/[email protected].6
147147
with:
148148
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
149149
include_paths: 'src/,backend/'
@@ -155,7 +155,7 @@ jobs:
155155
Configure a longer timeout for large repositories:
156156

157157
```yaml
158-
- uses: CodeAnt-AI/[email protected].1
158+
- uses: CodeAnt-AI/[email protected].6
159159
with:
160160
access_token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
161161
scan_timeout: '900' # 15 minutes (default: 300 seconds / 5 minutes)

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ runs:
5454
env:
5555
ACCESS_TOKEN: ${{ inputs.access_token }}
5656
REPO_NAME: ${{ github.repository }}
57-
COMMIT_ID: ${{ github.sha }}
57+
COMMIT_ID: ${{ github.event.pull_request.head.sha || github.sha }}
5858
BRANCH: ${{ github.ref_name }}
5959
INCLUDE_PATHS: ${{ inputs.include_paths }}
6060
EXCLUDE_PATHS: ${{ inputs.exclude_paths }}

0 commit comments

Comments
 (0)