install security packages

This commit is contained in:
Enno Rehling 2022-06-16 20:25:11 +02:00
parent 806c895f2e
commit c74ec7fd4f

View file

@ -32,6 +32,7 @@ async function main() {
const sourceRelativeDirectory = core.getInput("source_directory") || "./" const sourceRelativeDirectory = core.getInput("source_directory") || "./"
const artifactsRelativeDirectory = core.getInput("artifacts_directory") || "./" const artifactsRelativeDirectory = core.getInput("artifacts_directory") || "./"
const osDistribution = core.getInput("os_distribution") || "" const osDistribution = core.getInput("os_distribution") || ""
const extraPackages = core.getInput("extra_packages").split(' ') || []
const workspaceDirectory = process.cwd() const workspaceDirectory = process.cwd()
const sourceDirectory = path.join(workspaceDirectory, sourceRelativeDirectory) const sourceDirectory = path.join(workspaceDirectory, sourceRelativeDirectory)
@ -61,6 +62,7 @@ async function main() {
arch: cpuArchitecture, arch: cpuArchitecture,
image: image, image: image,
container: container, container: container,
extraPackages: extraPackages,
workspaceDirectory: workspaceDirectory, workspaceDirectory: workspaceDirectory,
sourceDirectory: sourceDirectory, sourceDirectory: sourceDirectory,
buildDirectory: buildDirectory, buildDirectory: buildDirectory,
@ -126,7 +128,7 @@ async function main() {
await exec.exec("docker", [ await exec.exec("docker", [
"exec", "exec",
container, container,
"apt-get", "install", "-yq", "-t", imageTag, "dpkg-dev", "debhelper", "devscripts" "apt-get", "install", "-yq", "dpkg-dev", "debhelper", "devscripts"
]) ])
core.endGroup() core.endGroup()
@ -135,7 +137,7 @@ async function main() {
await exec.exec("docker", [ await exec.exec("docker", [
"exec", "exec",
container, container,
"apt-get", "build-dep", "-yq", "-t", imageTag, sourceDirectory "apt-get", "build-dep", "-yq", sourceDirectory
]) ])
core.endGroup() core.endGroup()
} }