Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restyle [Snyk] Security upgrade debian from stretch-20210408-slim to stretch-slim #251

Open
wants to merge 1 commit into
base: snyk-fix-d1f5dd06449bb4986d5d6757581b39ad
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ ENTRYPOINT ["sh", "-c", "echo $GITHUB_SHA"]
Para proporcionar el `args` que se definió en el archivo de metadatos de la acción en un contenedor de Docker que utiliza la forma _exec_ en el `ENTRYPOINT`, recomendamos crear un script de shell llamado `entrypoint.sh` al que puedas llamar desde la instrucción `ENTRYPOINT`:

##### *Dockerfile* de ejemplo
```
```
# Container image that runs your code
FROM debian:stretch-slim

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

# Executes `entrypoint.sh` when the Docker container starts up
# Executes `entrypoint.sh` when the Docker container starts up
ENTRYPOINT ["/entrypoint.sh"]
```

Expand All @@ -78,14 +78,14 @@ Al utilizar el Dockerfile de ejemplo que se muestra anteriormente, {% data varia
``` sh
#!/bin/sh

# `$*` expands the `args` supplied in an `array` individually
# `$*` expands the `args` supplied in an `array` individually
# or splits `args` in a string separated by whitespace.
sh -c "echo $*"
```

Tu código debe ser ejecutable. Asegúrate que el archivo `entrypoint.sh` tiene permisos de `execute` antes de utilizarlo en un flujo de trabajo. Puedes modificar los permisos de tu terminal si utilizas este comando:
``` sh
chmod +x entrypoint.sh
chmod +x entrypoint.sh
```

Cuando un script de shell de `ENTRYPOINT` no es ejecutable, recibirás un error similar al siguiente:
Expand Down