ci: remove deploying latest main and preview clusters #27776
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Lint secrets" | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- 'main' | |
- 'releases/**' | |
pull_request: {} | |
jobs: | |
lint-secrets: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# TODO(danh): this install+configure git-secrets is a good candidate for a | |
# custom action repo -- closest to our needs I found is: | |
# https://github.com/kams-mash/gh-secrets-scanner-action | |
- name: Set tempdir because github actions are dumb | |
run: echo "SECRETS_REPO=$(mktemp -dp "$PWD")" >> "$GITHUB_ENV" | |
- uses: actions/checkout@v4 | |
with: | |
repository: awslabs/git-secrets | |
path: ${{ env.SECRETS_REPO }} | |
fetch-depth: 1 | |
- name: Compile and install git-secrets | |
run: | | |
sudo make -C "$SECRETS_REPO" install | |
# needed to avoid having the secret scan include the git-secrets repo | |
rm -rf "$SECRETS_REPO" | |
- name: Configure git-secrets | |
run: | | |
git secrets --install | |
git secrets --register-aws | |
git secrets --add '"private_key":\s"-----BEGIN\sPRIVATE\sKEY-----' | |
- name: Run scan | |
run: git secrets --scan-history |