generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 697
51 lines (41 loc) · 1.26 KB
/
codeguru.yml
File metadata and controls
51 lines (41 loc) · 1.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
name: Analyze with CodeGuru Reviewer
on:
- push
- workflow_dispatch # This allows manual triggering of the action through the GitHub UI.
permissions:
id-token: write
contents: read
security-events: write
jobs:
build:
name: Analyze with CodeGuru Reviewer
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-east-1
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
java-version: '1.8'
- name: Build project
run: mvn compile -DskipTests
- name: CodeGuru Reviewer
uses: aws-actions/codeguru-reviewer@v1.1
with:
s3_bucket: codeguru-reviewer-github-profiler-demo-048169001733-uw2
build_path: ./target/classes
- name: Store SARIF file
uses: actions/upload-artifact@v3 # Updated to v3
with:
name: SARIF_recommendations
path: ./codeguru-results.sarif.json
- name: Upload review result
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: codeguru-results.sarif.json