Skip to content

Update analyze.yml #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

#update role region bucket
name: CodeGuru Reviewer

on:
Expand Down Expand Up @@ -34,8 +34,8 @@ jobs:
continue-on-error: true
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::048169001733:role/GuruGitHubCICDRole
aws-region: us-west-2
role-to-assume: arn:aws:iam::194572371652:role/GitHubActionRole
aws-region: us-east-1

- name: Check out repository
uses: actions/checkout@v2
Expand All @@ -52,12 +52,12 @@ jobs:
if: steps.assume-iam-role.outcome == 'success'
continue-on-error: false
with:
s3_bucket: codeguru-reviewer-build-artifacts-048169001733-us-west-2
s3_bucket: codeguru-reviewer-build-artifacts-194572371652-us-east-1
build_path: ./build/libs

- name: Upload SARIF file to workflow artifacts
if: steps.assume-iam-role.outcome == 'success' && steps.analysis.outcome == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: codeguru-results.sarif.json
path: codeguru-results.sarif.json
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:

- name: Upload results summary to workflow artifacts
if: steps.assume-iam-role.outcome == 'success' && steps.analysis.outcome == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: summary-of-results.csv
path: summary-of-results.csv
Expand Down