Created
November 24, 2021 13:56
-
-
Save imjasonh/f1ad897cd7619fd7ef933bef67ad95af to your computer and use it in GitHub Desktop.
Script to find and alert on fulcios in GitHub Actions
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
#!/usr/bin/env bash | |
for l in $(git grep -in fuclio); do | |
fn=$(echo $l | cut -d: -f1) | |
ln=$(echo $l | cut -d: -f2) | |
echo "::error file=$fn,line=$ln::Typo: Fulcio" | |
done | |
if [[ ! -z $l ]]; then | |
echo "found a fuclio" | |
exit 1 | |
fi | |
# https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-error-message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment