Code Room
Vibe codingMediumvc-g172
Subject Ai code reviewLevel Mid–Senior~14 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

An AI scaffolded this deploy workflow. It runs and deploys fine. Your supply-chain audit fails it on two counts. What are they?

yaml
jobs:  deploy:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@main      - uses: some-vendor/deploy-action@v3        with:          token: ${{ secrets.DEPLOY_TOKEN }}      - name: Notify        run: curl -d "deployed" https://hooks.example.com/$WEBHOOK_ID
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it — tests, edge cases, reading critically — and how you’d re-prompt or decompose to get it right.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.