AI

AI

Workflows

Dependency audit in a sandbox: scan → report → check → approve

Clones the repository into a clean container on a company computer, runs the dependency scans there, and has the AI turn the raw results into a prioritized report whose upgrade actions become subtasks. Nothing runs on anyone's own computer.

EngineeringAssignee's computerLast 30 days: 2 runs · 50% finished · 14m 24s on average · 2,400 AI units on average
  • Runs inAssignee's computer
  • ReadsTask + its context
  • Verified by1 automatic check · 1 approval
  • Limits60 min a run · 10 min a step · may ask people
  • DeliversComment on the task
1 thing to check
  1. Start

    The assignee presses Run on their task. Their connected computer picks the run up and does each step there, with their coding agent.

    Advanced: what an instruction can point at
    {{task}}
    the task: code · title · description (up to 4,000 characters), then its context: the project and its week, parent task, subtasks, recent comments, files, documents it names, similar tasks (up to 6,000 characters).
    {{previous}}
    the last result before the step (an AI step's or a command's), with any notes approvers gave since; up to 8,000 characters.
    {{steps.key}}
    an earlier step's result, by its key.
    {{input.key}}
    what the person filled in at Run for that field.
    {{resources}}
    the playbook, pages, text files and the list of other files and links (up to 20,000 characters); added before the instruction when not placed.
    {{answers}}
    the answers people gave to the run's questions so far; added at the end when the instruction doesn't place them.
  2. 1Scan for known vulnerabilitiesRun a command$ npm audit --json > ../out/audit.json || true2 done · 0 failed · 2m 12s

    Runs in the working folder on the assignee's computer. Its output is the step's result; a non-zero exit stops the run as failed.

  3. 2List outdated packagesRun a command$ npm outdated --json > ../out/outdated.json || true2 done · 0 failed · 2m 12s

    Runs in the working folder on the assignee's computer. Its output is the step's result; a non-zero exit stops the run as failed.

  4. 3Write the reportAsk the AIsonnet1 done · 1 failed · 2m 24s1
    Model
    sonnetpassed to the agent (--model)
    Role

    A security engineer writing for the team that owns this code.

    Gets
    Task + contextInput: focus
    Result goes to
    checked at Step 4 · Report is actionable · shown to the approver at Step 5 · Approve · delivered when the run ends
    Tools
    The agent's own: its MCP servers, skills and the files in the working folder.
    Questions
    May ask the people on the task before it works, and again after their answers (up to 3 rounds).

    Instruction

    Read ../out/audit.json (npm audit) and ../out/outdated.json (npm outdated) and package.json in this folder. Do not change any file in the repository. Write the report in Markdown and also save it as ../out/audit-report.md:
    ## Summary (counts by severity, the one thing to do first)
    ## Vulnerabilities (a table: package, severity, what it allows, fixed in, direct or transitive)
    ## Outdated (only major versions behind, or packages no longer maintained)
    ## Actions (a checklist, most urgent first: "- [ ] Upgrade <package> to <version>: <why>")
    Use only what the two files say; if a file is empty or missing, say so. Look first at: {{input.focus}}
    
    {{task}}
    Show what the model receives

    A coding agent gets no system prompt from the workspace: the role goes at the top of its input.

    user

    Your role for this step:
    A security engineer writing for the team that owns this code.
    
    Read ../out/audit.json (npm audit) and ../out/outdated.json (npm outdated) and package.json in this folder. Do not change any file in the repository. Write the report in Markdown and also save it as ../out/audit-report.md:
    ## Summary (counts by severity, the one thing to do first)
    ## Vulnerabilities (a table: package, severity, what it allows, fixed in, direct or transitive)
    ## Outdated (only major versions behind, or packages no longer maintained)
    ## Actions (a checklist, most urgent first: "- [ ] Upgrade <package> to <version>: <why>")
    Use only what the two files say; if a file is empty or missing, say so. Look first at: {{input.focus}}
    
    task + context
    
    (the answers to the run's questions, when there are any)
    
    If something essential to this step is unclear and you cannot make a reasonable assumption, do not guess. Instead reply with only this block and stop:
    ```workspace-ask
    {"questions": [{"text": "<your question>", "options": ["<answer A>", "<answer B>"], "default": "<answer A>"}, {"text": "<another question>", "default": "<your best guess>"}]}
    ```
    At most 5 short questions, in the language of the task, all at once. Ask again after the answers only about something new they raise. First use the context above and the answers so far; never ask what they already say. Give "options" when the possible answers are known, and "default" with your best guess from the context, so people only correct it. The people on the task answer, then this step runs again with their answers. Ask only when it matters; otherwise do the step.
    
    (when an approver sent the result back: their request and the previous result)
    • {{input.focus}} is not one of the workflow's inputs: the model reads it as written.
  5. 4Report is actionableCheck automaticallyChecks Step 3 · Write the report1 done · 0 failed · 2m 24s
    Judge
    The agent's default modelwhatever the connected computer's agent uses
    Requirements
    • The summary gives counts by severity
    • Every vulnerability row names the package, the severity and the fixed version or says none exists
    • Every action is a checklist line naming a package and a target version
    • No vulnerability is described without a package name
    If it still fails
    Sends the work back to Step 3 · Write the report once. The run goes on with the issues on record, for the approver to see.
  6. 5ApproveWait for approvalAnyone who may edit the task · Step 3 · Write the report1 done · 0 failed · 4m 48s
    Who
    Anyone who may edit the task
    Can
    • Approve: the run goes on; a note is passed to the next step.
    • Ask for changes: Step 3 · Write the report runs again with the request, then every step after it.
    • Stop the run.
  7. End

    The result of step 3 · Write the report is delivered: Comment on the task.