We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea120dd commit 6dc578fCopy full SHA for 6dc578f
.github/workflows/pr-build.yml
@@ -60,8 +60,8 @@ jobs:
60
CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -E "^\.github/(workflows|actions)/.*\.ya?ml$" || true)
61
62
if [ -n "$CHANGED_FILES" ]; then
63
- # Check for any versioned actions
64
- VIOLATIONS=$(grep -Hn "uses:.*@v" $CHANGED_FILES || true)
+ # Check for any versioned actions, excluding comments and this validation script
+ VIOLATIONS=$(grep -Hn "uses:.*@v" $CHANGED_FILES | grep -v "grep.*uses:.*@v" | grep -v "^\s*#" || true)
65
if [ -n "$VIOLATIONS" ]; then
66
echo "Found versioned GitHub actions. Use commit SHAs instead:"
67
echo "$VIOLATIONS"
0 commit comments