Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Add release bot workflow for trufflehog releases (#4835)
Bryan Beverlye48f9039c827
diff --git a/.github/workflows/release-bot.yml b/.github/workflows/release-bot.ymlnew file mode 100644index 000000000..75db4b81b--- /dev/null+++ b/.github/workflows/release-bot.yml@@ -0,0 +1,36 @@+name: Run release bot++on:+ release:+ types: [published]++permissions: {}++jobs:+ run:+ if: ${{ github.repository == 'trufflesecurity/trufflehog' }}+ runs-on: ubuntu-latest++ steps:+ - name: Login to GCP+ id: auth+ uses: "google-github-actions/auth@v2"+ with:+ credentials_json: ${{ secrets.GCP_SA_TRUFFLE_RELEASE_BOT }}++ - name: Login to GAR+ uses: docker/login-action@v3+ with:+ registry: us-central1-docker.pkg.dev+ username: _json_key+ password: ${{ secrets.GCP_SA_TRUFFLE_RELEASE_BOT }}++ - name: Run release bot+ env:+ RELEASE_TAG: ${{ github.event.release.tag_name }}+ run: |+ docker run \+ -e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/GCP_SA_TRUFFLE_RELEASE_BOT.json \+ -v ${{ steps.auth.outputs.credentials_file_path }}:/tmp/keys/GCP_SA_TRUFFLE_RELEASE_BOT.json:ro \+ us-central1-docker.pkg.dev/truffle-release-bot/releases/bot:latest \+ --repository trufflehog "$RELEASE_TAG"