Skip to content

Commit 1f8011a

Browse files
Update veracode-iac-secrets-scan.yml
1 parent a301305 commit 1f8011a

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

.github/workflows/veracode-iac-secrets-scan.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,11 @@ jobs:
6464
fail_build_on_error: ${{ github.event.client_payload.user_config.break_build_on_error }}
6565

6666
cleanup:
67-
runs-on: ${{ fromJson(github.event.client_payload.user_config.default_runs_on) }}
68-
if: always()
69-
needs: [register, validations, veracode-iac-secrets-scan]
70-
steps:
71-
- uses: actions/checkout@v4
72-
with:
73-
repository: ${{ github.event.client_payload.repository.full_name }}
74-
ref: ${{ github.event.client_payload.sha }}
75-
token: ${{ github.event.client_payload.token }}
76-
- name: Remove helper/cli folder
77-
run: |
78-
if [ -d "$GITHUB_WORKSPACE/helper/cli" ]; then
79-
echo "Removing helper/cli folder..."
80-
rm -rf "$GITHUB_WORKSPACE/helper/cli"
81-
echo "helper/cli folder removed successfully"
82-
else
83-
echo "helper/cli folder not found, skipping cleanup"
84-
fi
67+
runs-on: ${{ fromJson(github.event.client_payload.user_config.default_runs_on) }}
68+
if: always()
69+
needs: [register, validations, veracode-iac-secrets-scan]
70+
steps:
71+
- name: Cleanup workspace and Docker
72+
run: |
73+
echo "Running final cleanup..."
74+
sudo rm -rf $GITHUB_WORKSPACE/

0 commit comments

Comments
 (0)