Skip to content

Commit 962fc6a

Browse files
committed
DiffScope Review: use docker run instead of uses docker:// to avoid pre-pull failing job
GitHub pre-pulls container actions before any steps run; that pull was failing the job. Run DiffScope via 'docker run' only when image is already available from Check image step. Made-with: Cursor
1 parent 52e44da commit 962fc6a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/diffscope.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ jobs:
4848

4949
- name: Run DiffScope
5050
if: steps.check_key.outputs.skip != 'true' && steps.check_image.outputs.available == 'true'
51-
uses: docker://ghcr.io/evalops/diffscope:latest
52-
continue-on-error: true
53-
env:
54-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
55-
with:
56-
args: review --diff pr.diff --output-format json --output comments.json
51+
run: |
52+
docker run --rm \
53+
-e OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}" \
54+
-v "$PWD":/workspace -w /workspace \
55+
ghcr.io/evalops/diffscope:latest \
56+
review --diff pr.diff --output-format json --output comments.json
5757
5858
- name: Post comments
5959
if: steps.check_key.outputs.skip != 'true' && steps.check_image.outputs.available == 'true'

0 commit comments

Comments
 (0)