[Snyk] Security upgrade org.webjars:bootstrap from 3.3.7 to 5.3.3 #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
pull_request: | |
paths-ignore: | |
- '.txt' | |
- '*.MD' | |
- '*.md' | |
- 'LICENSE' | |
- 'docs/**' | |
push: | |
branches: | |
- master | |
- develop | |
tags-ignore: | |
- '*' | |
paths-ignore: | |
- '.txt' | |
- '*.MD' | |
- '*.md' | |
- 'LICENSE' | |
- 'docs/**' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
java: [15] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
architecture: x64 | |
- name: Cache Maven packages | |
uses: actions/[email protected] | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: mvn clean install | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository and provide your AWS credentials | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Checkout the action from a private repository | |
uses: actions/checkout@v2 | |
if: ${{ always() }} | |
with: | |
repository: vijejain/cicd-actions | |
ref: refs/heads/main | |
token: ${{ secrets.TOKEN }} # Required for Private Beta | |
path: ./.github/vijejain/cicd-actions | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ap-southeast-2 | |
# Step 2: Add CodeGuru Reviewer Action | |
- name: AWS CodeGuru Reviewer Scanner | |
uses: ./.github/vijejain/cicd-actions | |
with: | |
build_path: target # build artifact(s) directory | |
s3_bucket: codeguru-reviewer-mybucket101 # S3 Bucket with "codeguru-reviewer-*" prefix | |
# Step 3: Upload results into GitHub | |
- name: Upload review result | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: codeguru-results.sarif.json | |