Skip to content

Commit 9490f68

Browse files
committed
fix: gha will not create directories
1 parent 50a396e commit 9490f68

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/agents/nightly-scanner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ agents:
129129
toolsets:
130130
- type: filesystem
131131
- type: memory
132-
path: .github/agents/scanner-memory.db
132+
path: .cache/scanner-memory.db
133133

134134
security:
135135
model: openai-o3,claude-sonnet

.github/workflows/nightly-scan.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ jobs:
2929
with:
3030
fetch-depth: 1
3131

32+
- name: Ensure cache directory exists
33+
run: mkdir -p "${{ github.workspace }}/.cache"
34+
3235
- name: Restore scanner memory
3336
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
3437
with:
35-
path: ${{ github.workspace }}/.github/agents/scanner-memory.db
38+
path: ${{ github.workspace }}/.cache/scanner-memory.db
3639
key: scanner-memory-${{ github.repository }}-${{ github.run_id }}
3740
restore-keys: |
3841
scanner-memory-${{ github.repository }}-
@@ -53,5 +56,5 @@ jobs:
5356
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5457
if: always()
5558
with:
56-
path: ${{ github.workspace }}/.github/agents/scanner-memory.db
59+
path: ${{ github.workspace }}/.cache/scanner-memory.db
5760
key: scanner-memory-${{ github.repository }}-${{ github.run_id }}

0 commit comments

Comments
 (0)