Skip to content

Instantly share code, notes, and snippets.

@imjasonh
Created November 24, 2021 13:56
Show Gist options
  • Save imjasonh/f1ad897cd7619fd7ef933bef67ad95af to your computer and use it in GitHub Desktop.
Save imjasonh/f1ad897cd7619fd7ef933bef67ad95af to your computer and use it in GitHub Desktop.
Script to find and alert on fulcios in GitHub Actions
#!/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