Skip to content

Commit 73ca8a3

Browse files
hyperpolymathclaude
andcommitted
fix(ci): fix stale codeql-action SHA and hypatia-scan working directory
- Update github/codeql-action/upload-sarif to current v3 SHA - Fix hypatia-scan.yml: env.HOME not available in working-directory context, use GITHUB_WORKSPACE relative path instead - Fix hypatia build: mix project is at root, not scanner/ subdir Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 27ce107 commit 73ca8a3

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/hypatia-scan.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,20 @@ jobs:
3333

3434
- name: Clone Hypatia
3535
run: |
36-
if [ ! -d "$HOME/hypatia" ]; then
37-
git clone https://github.com/hyperpolymath/hypatia.git "$HOME/hypatia"
36+
HYPATIA_DIR="${GITHUB_WORKSPACE}/../hypatia"
37+
if [ ! -d "$HYPATIA_DIR" ]; then
38+
git clone --depth 1 https://github.com/hyperpolymath/hypatia.git "$HYPATIA_DIR"
3839
fi
40+
echo "HYPATIA_DIR=$HYPATIA_DIR" >> "$GITHUB_ENV"
3941
4042
- name: Build Hypatia scanner (if needed)
41-
working-directory: ${{ env.HOME }}/hypatia
4243
run: |
44+
cd "$HYPATIA_DIR"
4345
if [ ! -f hypatia-v2 ]; then
4446
echo "Building hypatia-v2 scanner..."
45-
cd scanner
46-
mix deps.get
47+
mix deps.get --quiet
4748
mix escript.build
48-
mv hypatia ../hypatia-v2
49+
mv hypatia hypatia-v2
4950
fi
5051
5152
- name: Run Hypatia scan
@@ -54,7 +55,7 @@ jobs:
5455
echo "Scanning repository: ${{ github.repository }}"
5556
5657
# Run scanner
57-
HYPATIA_FORMAT=json "$HOME/hypatia/hypatia-cli.sh" scan . > hypatia-findings.json
58+
HYPATIA_FORMAT=json "$HYPATIA_DIR/hypatia-cli.sh" scan . > hypatia-findings.json
5859
5960
# Count findings
6061
FINDING_COUNT=$(jq '. | length' hypatia-findings.json 2>/dev/null || echo 0)

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
security-events: write
1818
id-token: write
1919
steps:
20-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.2
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2121
with:
2222
persist-credentials: false
2323

@@ -28,6 +28,6 @@ jobs:
2828
results_format: sarif
2929

3030
- name: Upload results
31-
uses: github/codeql-action/upload-sarif@4dd1439054423ad07501db44cf2fd84746f8ca8e # v3.31.8
31+
uses: github/codeql-action/upload-sarif@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3
3232
with:
3333
sarif_file: results.sarif

0 commit comments

Comments
 (0)