Skip to content

Commit

Permalink
ci: Fix cleanup permissions (#4943)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Oct 26, 2023
1 parent 81d3262 commit de4388d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
6 changes: 0 additions & 6 deletions .github/actions/e2e/cleanup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ inputs:
runs:
using: "composite"
steps:
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::${{ inputs.account_id }}:role/${{ inputs.role }}
aws-region: ${{ inputs.region }}
role-duration-seconds: 21600
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
Expand Down
6 changes: 0 additions & 6 deletions .github/actions/e2e/create-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ inputs:
runs:
using: "composite"
steps:
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::${{ inputs.account_id }}:role/${{ inputs.role }}
aws-region: ${{ inputs.region }}
role-duration-seconds: 21600
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
Expand Down
6 changes: 0 additions & 6 deletions .github/actions/e2e/install-karpenter/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ inputs:
runs:
using: "composite"
steps:
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::${{ inputs.account_id }}:role/${{ inputs.role }}
aws-region: ${{ inputs.region }}
role-duration-seconds: 21600
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/e2e-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
- "us-east-2"
- "us-west-2"
- "eu-west-1"
permissions:
id-token: write # aws-actions/[email protected]
jobs:
cleanup:
name: cleanup-${{ inputs.cluster_name }}
Expand All @@ -22,6 +24,12 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::${{ vars.ACCOUNT_ID }}:role/${{ vars.ROLE_NAME }}
aws-region: ${{ inputs.region }}
role-duration-seconds: 21600
- name: cleanup karpenter and cluster '${{ inputs.cluster_name }}' resources
uses: ./.github/actions/e2e/cleanup
with:
Expand Down

0 comments on commit de4388d

Please sign in to comment.