Skip to content

Commit 404a107

Browse files
chore(ci): Maximize CI/CD values (Dependabot & Permissions) (#1)
* chore(ci): maximize ci/cd values via dependabot and permissions * fix(ci): Resolve workflow-linter self-matching and metadata issues
1 parent 4445685 commit 404a107

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/boj-build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: BoJ Server Build Trigger
2-
33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [main, master]
66
workflow_dispatch:
7-
87
jobs:
98
trigger-boj:
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: Checkout
13-
uses: actions/checkout@v4
14-
12+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1513
- name: Trigger BoJ Server (Casket/ssg-mcp)
1614
run: |
1715
# Send a secure trigger to boj-server to build this repository
1816
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\\"}"}
1917
continue-on-error: true
18+
permissions: read-all

.github/workflows/workflow-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ 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+
unpinned=$(grep -rnE "^[[:space:]]+uses:" .github/workflows/ | \
6767
grep -v "@[a-f0-9]\{40\}" | \
6868
grep -v "uses: \./\|uses: docker://\|uses: actions/github-script" || true)
6969

0 commit comments

Comments
 (0)