Skip to content

Commit 09b094c

Browse files
committed
Temporary live test
1 parent 3b1c655 commit 09b094c

3 files changed

Lines changed: 52 additions & 1 deletion

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: llm-credentials-livetest
2+
on:
3+
push:
4+
branches: [hypeship/llm-credentials-livetest]
5+
permissions:
6+
contents: read
7+
id-token: write
8+
jobs:
9+
refresh:
10+
strategy:
11+
matrix:
12+
model: [openai/gpt-6-luna, anthropic/claude-haiku-5-5]
13+
runs-on: ubuntu-latest
14+
env:
15+
PI_TELEMETRY: '0'
16+
PI_SKIP_VERSION_CHECK: '1'
17+
steps:
18+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
19+
with:
20+
node-version: '22'
21+
- run: npm install -g --ignore-scripts @earendil-works/pi-coding-agent >/dev/null
22+
- uses: kernel/security-workflows/.github/actions/llm-credentials@hypeship/llm-credentials-livetest
23+
with:
24+
model: ${{ matrix.model }}
25+
- name: Wait past the first credential's expiry
26+
run: sleep 400
27+
- name: Call the model with refreshed credentials
28+
env:
29+
MODEL: ${{ matrix.model }}
30+
run: |
31+
test -z "${ANTHROPIC_API_KEY:-}${OPENAI_API_KEY:-}"
32+
stat -c '%y %n' "$RUNNER_TEMP/anthropic-identity-token" ~/.pi/agent/auth.json 2>/dev/null || true
33+
cat "$RUNNER_TEMP/llm-credentials.log" 2>/dev/null || true
34+
echo "Reply with exactly: refreshed ok" | pi --print --no-session --no-tools --no-mcp \
35+
--no-extensions --no-skills --no-context-files --model "$MODEL"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: pr-risk-wif-livetest
2+
on:
3+
pull_request:
4+
branches: [hypeship/llm-credentials-livetest]
5+
permissions:
6+
contents: read
7+
pull-requests: read
8+
id-token: write
9+
jobs:
10+
classify:
11+
uses: ./.github/workflows/pr-risk.yml
12+
with:
13+
security-workflows-ref: hypeship/llm-credentials-livetest
14+
secrets:
15+
ADMIN_APP_ID: ${{ secrets.ADMIN_APP_ID }}
16+
ADMIN_APP_PRIVATE_KEY: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}

‎.github/workflows/pr-risk.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
# `uses` can't take an expression, so this follows main rather than security-workflows-ref.
101101
- name: Model credentials
102102
if: steps.gather.outputs.eligible == 'true'
103-
uses: kernel/security-workflows/.github/actions/llm-credentials@main
103+
uses: kernel/security-workflows/.github/actions/llm-credentials@hypeship/llm-credentials-livetest
104104
with:
105105
model: ${{ inputs.model }}
106106

0 commit comments

Comments
 (0)