Merge pull request #9425 from continuedev/fix/continue-agents-js-parsing
fix: use env vars for safe string handling in continue-agents workflow
This commit is contained in:
commit
22041c5aae
1 changed files with 9 additions and 4 deletions
13
.github/workflows/continue-agents.yml
vendored
13
.github/workflows/continue-agents.yml
vendored
|
|
@ -143,16 +143,21 @@ jobs:
|
|||
- name: Update Check Run
|
||||
if: always()
|
||||
uses: actions/github-script@v8
|
||||
env:
|
||||
AGENT_OUTPUT: ${{ steps.run.outputs.output }}
|
||||
AGENT_ERROR: ${{ steps.run.outputs.error }}
|
||||
AGENT_SUCCESS: ${{ steps.run.outputs.success }}
|
||||
CHECK_RUN_ID: ${{ steps.check.outputs.id }}
|
||||
with:
|
||||
script: |
|
||||
const success = '${{ steps.run.outputs.success }}' === 'true';
|
||||
const output = `${{ steps.run.outputs.output }}`;
|
||||
const error = `${{ steps.run.outputs.error }}`;
|
||||
const success = process.env.AGENT_SUCCESS === 'true';
|
||||
const output = process.env.AGENT_OUTPUT || '';
|
||||
const error = process.env.AGENT_ERROR || '';
|
||||
|
||||
await github.rest.checks.update({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
check_run_id: ${{ steps.check.outputs.id }},
|
||||
check_run_id: parseInt(process.env.CHECK_RUN_ID, 10),
|
||||
status: 'completed',
|
||||
conclusion: success ? 'success' : 'failure',
|
||||
completed_at: new Date().toISOString(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue