Skip to content

Commit 6e655c4

Browse files
committed
ci workflow typo fix
1 parent 3729569 commit 6e655c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: aquasecurity/tfsec-action@v1.0.2
3838

3939
caller-identity-check:
40-
if: ${{ gitlab.event_name == 'pull_request' }}
40+
if: ${{ github.event_name == 'pull_request' }}
4141
name: Return the IAM user
4242
needs: [validate, tfsec]
4343
permissions:
@@ -49,20 +49,20 @@ jobs:
4949
uses: aws-actions/configure-aws-credentials@v1
5050
with:
5151
aws-region: ${{ secrets.AWS_REGION }}
52-
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/gitlab-runner
52+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-runner
5353
- run: |
5454
aws sts get-caller-identity
5555
5656
auto-approve:
57-
if: ${{ gitlab.event_name == 'pull_request' }}
57+
if: ${{ github.event_name == 'pull_request' }}
5858
runs-on: ubuntu-latest
5959
needs: [validate, tfsec, caller-identity-check]
6060
steps:
6161
- name: Auto Approve PR
62-
uses: actions/gitlab-script@v6
62+
uses: actions/github-script@v6
6363
with:
6464
script: |
65-
gitlab.rest.pulls.createReview({
65+
github.rest.pulls.createReview({
6666
owner: context.repo.owner,
6767
repo: context.repo.repo,
6868
pull_number: context.issue.number,

0 commit comments

Comments
 (0)