Skip to content

Commit

Permalink
testing gh sync with cc
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddych committed Aug 29, 2023
1 parent f715a9a commit 062b02c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gh-sync-cc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Sync GitHub with AWS CodeCommit for AV/ADAS Solutions

on:
# Triggers the workflow on push or pull request events but only for the "addf-sonarscan-branch" branch
push:
branches: ["addf-sonarscan-branch"]
pull_request:
branches: ["addf-sonarscan-branch"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
sync:
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/addf-sonarscan-branch'
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::560360184571:role/GitHubAction-AssumeRoleWithAction #change to reflect your IAM role’s ARN
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: us-west-2
# Hello from AWS: WhoAmI print
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
17 changes: 0 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@ on:
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/addf-sonarscan-branch'
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::560360184571:role/GitHubAction-AssumeRoleWithAction #change to reflect your IAM role’s ARN
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: us-west-2
# Hello from AWS: WhoAmI print
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
modules-analysis-rosbag-scene-detection:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 062b02c

Please sign in to comment.