-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
45 lines (34 loc) · 1.05 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# yamllint disable rule:line-length
---
name: docker pull
description: pull image from registry
inputs:
working-directory:
description: set working directory. Default is ./.
required: false
default: "."
registry:
description: name of registry
required: false
default: docker.io
organization:
description: dtr compatible organization identified
required: false
default: ""
image:
description: name of image
required: true
tag:
description: value for tag
required: false
default: dev.${GITHUB_SHA:0:7}
runs:
using: "composite"
steps:
- name: pull image from registry
shell: bash
run: docker pull ${{ inputs.registry }}/${{ inputs.organization }}/${{ inputs.image }}:${{ inputs.tag }}
- name: write manifest locally for sbom generation
working-directory: ${{ inputs.working-directory }}
shell: bash
run: docker image inspect --format='{{index .RepoDigests 0}}' ${{ inputs.registry }}/${{ inputs.organization }}/${{ inputs.image }}:${{ inputs.tag }} > manifestid