Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 50c38ec

Browse files
authored
Restructuring and adding github action
1 parent e2c38c4 commit 50c38ec

25 files changed

Lines changed: 48 additions & 360 deletions
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
name: Analyze with CodeGuru Reviewer
3+
on: [pull_request, push]
4+
permissions:
5+
id-token: write
6+
contents: read
7+
security-events: write
8+
9+
jobs:
10+
CodeGuruReviewerScan:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
- name: Build with Maven
21+
run: mvn package -DskipTests
22+
23+
- name: Assume IAM Role
24+
uses: aws-actions/configure-aws-credentials@v1
25+
with:
26+
role-to-assume: arn:aws:iam::048169001733:role/GuruGitHubCICDRole
27+
aws-region: us-west-2
28+
29+
- name: Run CodeGuru Reviewer
30+
uses: aws-actions/codeguru-reviewer@v1.1
31+
continue-on-error: false
32+
with:
33+
s3_bucket: codeguru-reviewer-github-profiler-demo-048169001733-uw2
34+
build_path: ./target
35+
36+
- name: Store jars
37+
uses: actions/upload-artifact@v2
38+
with:
39+
name: SARIF_recommendations
40+
path: ./codeguru-results.sarif.json
41+
42+
- name: Upload review result
43+
uses: github/codeql-action/upload-sarif@v1
44+
with:
45+
sarif_file: codeguru-results.sarif.json

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
This repository will provide snippets of sample code to demonstrate the functionality of Amazon CodeGuru Reviewer.
44
Please navigate to respective directories to obtain the code.
55

6-
Security Analysis: This directory contains sample java file along with the zipped source file and a build artifact jar file, that you can utilize to carry out the security analysis for CodeGuru.
6+
Please refer to the blog for the detailed instructions including [Github Actions integration](https://aws.amazon.com/blogs/aws/amazon_codeguru_reviewer_updates_new_java_detectors_and_cicd_integration_with_github_actions/).
77

8-
Please refer to the blog for the detailed instructions including Github Actions intergration: https://aws.amazon.com/blogs/aws/amazon_codeguru_reviewer_updates_new_java_detectors_and_cicd_integration_with_github_actions/
8+
To set up CodeGuru Reviewer for your CI/CD workflow, take a look at this [CDK example](https://github.com/aws-samples/aws-codeguru-reviewer-cicd-cdk-sample).
99

1010

1111

gh-ci-pipeline/.github/.DS_Store

-6 KB
Binary file not shown.

gh-ci-pipeline/.github/workflows/workflow.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

gh-ci-pipeline/src/test/resources/8787323232232332--55322798-dd29-4a04-97f4-93e18feed554

Lines changed: 0 additions & 3 deletions
This file was deleted.

gh-ci-pipeline/src/test/resources/8787323232232332--55322798-dd29-4a04-97f4-93e18feed555

Lines changed: 0 additions & 3 deletions
This file was deleted.

gh-ci-pipeline/src/test/resources/8787323232232332--55322798-dd29-4a04-97f4-93e18feed556

Lines changed: 0 additions & 3 deletions
This file was deleted.

gh-ci-pipeline/src/test/resources/8787323232232332--55322798-dd29-4a04-97f4-93e18feed557

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)