Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix: change JAVA_HOME env in Dockerfile/entrypoint
Browse files Browse the repository at this point in the history
Co-authored-by: name [email protected]
  • Loading branch information
sindrerh2 committed Mar 29, 2022
1 parent 6f479e8 commit d1c1493
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ inputs:
The key used to sign the attestation
required: true

docker_user:
description: |-
User to login to docker
required: true

docker_pwd:
description: |-
Pwd to login to docker
required: true

docker_registry:
description: |-
docker registry
required: true
default: "ghcr.io"

image:
description: |-
docker image to sign. Defaults to $ENV_IMAGE.
Expand Down Expand Up @@ -62,3 +78,6 @@ runs:
- ${{ inputs.env_context }}
- ${{ inputs.repo_sub_dir }}
- ${{ inputs.key }}
- ${{ inputs.docker_user }}
- ${{ inputs.docker_pwd }}
- ${{ inputs.docker_registry }}
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export JAVA_HOME=/opt/java/openjdk
echo "JAVA_HOME: $JAVA_HOME"
echo "MAVEN_HOME: $MAVEN_HOME"
echo "---------- Preparing pico-de-galo Slsa for repository: $REPO_NAME ----------"
echo $INPUT_DOCKER_PWD | docker login $INPUT_DOCKER_REGISTRY -u $INPUT_DOCKER_USER --password-stdin

salsa scan \
--repo "$REPO_NAME" \
Expand Down

0 comments on commit d1c1493

Please sign in to comment.