Skip to content

Commit 570b5c7

Browse files
author
Nikunj Vaidya
committed
Adding new directory for GitHub Actions CI Pipeline with CodeGuru support
1 parent 92907b3 commit 570b5c7

18 files changed

+322
-0
lines changed

gh-ci-pipeline/.github/.DS_Store

6 KB
Binary file not shown.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Java CI with Maven
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
24+
- name: Build with Maven
25+
run: mvn -B package --file pom.xml
26+
27+
- name: Configure AWS credentials
28+
uses: aws-actions/configure-aws-credentials@v1
29+
with:
30+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
31+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
32+
aws-region: us-west-2 #AWS region where you want to use CodeGuru, example here us-west-2, please change it as needed
33+
34+
- name: CodeGuru Reviewer
35+
uses: aws-actions/codeguru-reviewer@v1.1
36+
with:
37+
build_path: target # build artifact(s) directory
38+
s3_bucket: YOUR-BUCKET-NAME # S3 Bucket with "codeguru-reviewer-*" prefix
39+
40+
- name: 'Upload Artifact'
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: sarif_results
44+
path: codeguru-results*.json
45+
46+
- name: Upload review result
47+
uses: github/codeql-action/upload-sarif@v1
48+
with:
49+
sarif_file: codeguru-results.sarif.json
62.6 KB
Loading

gh-ci-pipeline/images/clone.png

27 KB
Loading

gh-ci-pipeline/images/compare.png

54.8 KB
Loading
54.3 KB
Loading

gh-ci-pipeline/images/fork.png

16.1 KB
Loading

gh-ci-pipeline/images/pending.png

34.1 KB
Loading
96.1 KB
Loading

gh-ci-pipeline/pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>sample-applications</groupId>
4+
<artifactId>Guru-Sample-application</artifactId>
5+
<version>0.0.1-SNAPSHOT</version>
6+
<name>Guru-Sample-application</name>
7+
<properties>
8+
<maven.compiler.source>1.8</maven.compiler.source>
9+
<maven.compiler.target>1.8</maven.compiler.target>
10+
</properties>
11+
<dependencies>
12+
<dependency>
13+
<groupId>com.amazonaws</groupId>
14+
<artifactId>aws-lambda-java-core</artifactId>
15+
<version>1.2.0</version>
16+
</dependency>
17+
<dependency>
18+
<groupId>com.amazonaws</groupId>
19+
<artifactId>aws-lambda-java-events</artifactId>
20+
<version>2.2.6</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>com.amazonaws</groupId>
24+
<artifactId>aws-java-sdk-s3</artifactId>
25+
<version>1.11.624</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.apache.commons</groupId>
29+
<artifactId>commons-lang3</artifactId>
30+
<version>3.8</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>javax.servlet</groupId>
34+
<artifactId>javax.servlet-api</artifactId>
35+
<version>3.0.1</version>
36+
<scope>provided</scope>
37+
</dependency>
38+
</dependencies>
39+
<build>
40+
<plugins>
41+
<plugin>
42+
<groupId>org.apache.maven.plugins</groupId>
43+
<artifactId>maven-shade-plugin</artifactId>
44+
<version>3.2.1</version>
45+
</plugin>
46+
</plugins>
47+
</build>
48+
</project>

0 commit comments

Comments
 (0)