Skip to content

Commit 80ef290

Browse files
committed
fix(ci): Resolve workflow-linter self-matching and metadata issues
1 parent c17a01d commit 80ef290

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/boj-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: BoJ Server Build Trigger
23
on:
34
push:
45
branches: [main, master]
56
workflow_dispatch:
7+
8+
permissions: read-all
9+
610
jobs:
711
trigger-boj:
812
runs-on: ubuntu-latest
913
steps:
1014
- name: Checkout
11-
uses: actions/checkout@v4
15+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16+
1217
- name: Trigger BoJ Server (Casket/ssg-mcp)
1318
run: |
1419
# Send a secure trigger to boj-server to build this repository
1520
curl -X POST "http://boj-server.local:7700/cartridges/ssg-mcp/invoke" -H "Content-Type: application/json" -d "{\"repo\": \"${{ github.repository }}\", \"branch\": \"${{ github.ref_name }}\", \"engine\": \"casket\\"}"}
1621
continue-on-error: true
17-
permissions: read-all

.github/workflows/workflow-linter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ jobs:
6363
echo "=== Checking Action Pinning ==="
6464
# Find any uses: lines that don't have @SHA format
6565
# Pattern: uses: owner/repo@<40-char-hex>
66-
unpinned=$(grep -rn "uses:" .github/workflows/ | \
66+
# We use grep -E to ensure we only match YAML keys (indented uses:), avoiding self-matches
67+
unpinned=$(grep -rnE "^[[:space:]]+uses:" .github/workflows/ | \
6768
grep -v "@[a-f0-9]\{40\}" | \
6869
grep -v "uses: \./\|uses: docker://\|uses: actions/github-script" || true)
6970

0 commit comments

Comments
 (0)