Skip to content

Commit 922c111

Browse files
committed
fix: address shellcheck linting issues
- Replace 'cat file | cmd' with 'cmd < file' (SC2002) - Use command grouping for multiple redirects (SC2129)
1 parent 8fe52fb commit 922c111

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/classify-issue-severity.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,13 @@ jobs:
151151
fi
152152
153153
# Extract the result from the execution file
154-
RESULT=$(cat "$EXECUTION_FILE" | jq -r '.result // empty')
154+
RESULT=$(jq -r '.result // empty' < "$EXECUTION_FILE")
155155
156-
echo "result<<EOF" >> "$GITHUB_OUTPUT"
157-
echo "$RESULT" >> "$GITHUB_OUTPUT"
158-
echo "EOF" >> "$GITHUB_OUTPUT"
156+
{
157+
echo "result<<EOF"
158+
echo "$RESULT"
159+
echo "EOF"
160+
} >> "$GITHUB_OUTPUT"
159161
160162
post-comment:
161163
name: Post Classification Comment

0 commit comments

Comments
 (0)