Skip to content

Commit c592d3c

Browse files
committed
github actions: skip JIRA checks if secrets are unavailable
There are many workflows that are useful without the JIRA checks from Forks. We're still evaluating how to best deal with this without a lot of engineer overhead to check extrenal contributors.
1 parent f55b713 commit c592d3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/validate-kernel-commits.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ jobs:
172172
JIRA_URL: ${{ secrets.JIRA_URL }}
173173
working-directory: kernel-src-tree-tools
174174
run: |
175+
# Check if JIRA credentials are set
176+
if [ -z "$JIRA_API_TOKEN" ] || [ -z "$JIRA_API_USER" ] || [ -z "$JIRA_URL" ]; then
177+
echo "⚠️ JIRA credentials not available (likely running from a fork) - skipping JIRA check"
178+
echo "has_issues=false" >> $GITHUB_OUTPUT
179+
echo "has_lts_mismatch=false" >> $GITHUB_OUTPUT
180+
exit 0
181+
fi
182+
175183
# Run script and capture output, ensuring credentials are never echoed
176184
set +x # Disable command echo to prevent credential exposure
177185
set +e # Don't exit on error, we want to capture the output

0 commit comments

Comments
 (0)