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
# used in OpenSSF EU 22 presentation: | |
#!/bin/sh | |
#set -X | |
#doitlive commentecho: true | |
### start second demo | |
#!/bin/sh | |
#set -x |
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
# used in DevConf 22 presentation: https://www.youtube.com/watch?v=vh26wcpA1-M | |
#!/bin/sh | |
#set -X | |
#doitlive commentecho: true | |
# | |
# Start with a clean slate | |
make clean | |
# | |
# Edit the source |
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
#!/bin/sh | |
# assumes you have curl, jq and smallstep CLI in path | |
POLLURL="https://oauth2.sigstore.dev/auth/device/token" | |
START=$(curl -s -d client_id=sigstore -d "scope=openid email" https://oauth2.sigstore.dev/auth/device/code -o -) | |
echo "Please visit $(echo $START | jq -r '.verification_uri_complete')" | |
DEVICECODE=$(echo $START | jq -r '.device_code' ) |
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
#!/bin/sh | |
#set -x | |
#doitlive commentecho: true | |
# Requires openssl, step (https://github.com/smallstep/cli), jq | |
## COSIGN or SWISS-ARMY-KNIFE TOOL | |
# use openssl to generate keypair | |
openssl ecparam -genkey -name secp384r1 > ec_private.pem | |
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
Bobs-MacBook-Pro:square-webhook bcallawa$ terraform init -reconfigure | |
Initializing the backend... | |
Successfully configured the backend "gcs"! Terraform will automatically | |
use this backend unless the backend configuration changes. | |
Initializing provider plugins... | |
- Checking for available provider plugins... | |
panic: runtime error: invalid memory address or nil pointer dereference |