Skip to content

Commit 05a5bd7

Browse files
committed
pin the image with sha256
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent ccc3f9b commit 05a5bd7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ inputs:
3939
default: "false"
4040
scancodeio-image:
4141
description: "ScanCode.io Docker image to use."
42-
default: "ghcr.io/aboutcode-org/scancode.io:v37.1.0"
42+
default: "ghcr.io/aboutcode-org/scancode.io@sha256:6fc8023bc588602ef2ec2b699c2503d8771fe5ef16470475fe64b641f0955f5b" # v37.1.0
4343

4444
runs:
4545
using: "composite"
@@ -98,13 +98,10 @@ runs:
9898
sudo -u postgres createdb --owner=scancodeio --encoding=UTF-8 scancodeio
9999
fi
100100
101-
- name: Pull the ScanCode.io image
102-
shell: bash
103-
run: docker pull "$SCANCODEIO_IMAGE"
104-
105101
- name: Write scanpipe wrapper script
106102
shell: bash
107103
run: |
104+
if [ -f "$RUNNER_TEMP/scanpipe" ]; then exit 0; fi
108105
cat > "$RUNNER_TEMP/scanpipe" << 'EOF'
109106
#!/usr/bin/env bash
110107
set -euo pipefail

0 commit comments

Comments
 (0)