Skip to content

Instantly share code, notes, and snippets.

@jrussett
Last active October 30, 2018 20:26
Show Gist options
  • Save jrussett/1f0b9a7a04fc3502c004c1ceb6bbc0f9 to your computer and use it in GitHub Desktop.
Save jrussett/1f0b9a7a04fc3502c004c1ceb6bbc0f9 to your computer and use it in GitHub Desktop.
Testing the pivotal cred-alert-cli
#! /bin/bash
set -eux
tmpdir=$(mktemp -d)
pushd "$tmpdir" || return
git init
cat <<'EOF'>> test.key
-----BEGIN RSA PRIVATE KEY-----
fakersakeydata
-----END RSA PRIVATE KEY-----
EOF
git add test.key;
git commit -m "Testing credential commit" # You should see a warning after this command
popd || exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment