summary refs log tree commit diff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2022-10-18 01:07:28 +0300
committerCristian Ciocaltea <cristian.ciocaltea@collabora.com>2022-12-12 17:57:13 +0200
commitcf56923cf23fc680493b0bb6832fef49f9d8911d (patch)
tree8dbfebd420a903e690cc067237366d79be235cef /.gitlab-ci.yml
parenta9a16ca69914fbc2bb2aff6af4b190b6464503a9 (diff)
downloadlinux-cf56923cf23fc680493b0bb6832fef49f9d8911d.tar.gz
gitlab-ci: Make use of KERNEL_RESEARCH_TOKEN masked variable
In order to mitigate the security concerns regarding the exposure of a
private token value inside CI configuration, make use of a masked
variable defined in the project CI settings.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1fd1dcc72f9b..9a88752052a8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,7 @@ kernel build:
     - cp -v arch/x86/boot/bzImage .
     - cp .config kernel_config
     # download rootfs
-    - 'curl -L --header "PRIVATE-TOKEN: 2HUDR583zAq2ym4Pfm4x" "$ROOTFS_IMAGE_URL" --output artifact.zip'
+    - 'curl -L --header "PRIVATE-TOKEN: ${KERNEL_RESEARCH_ROOTFS_TOKEN}" "${ROOTFS_IMAGE_URL}" --output artifact.zip'
     - unzip artifact.zip
     - qemu-system-x86_64 -enable-kvm -nographic -kernel ${KERNEL} -drive file=${ROOTFS_NAME},format=raw -device virtio-serial-pci -virtfs local,path=$(pwd),mount_tag=steamlogs,security_model=none -m 2G -smp 2 -cpu host -net user,hostfwd=tcp::2222-:22 -net nic,model=virtio --append "root=/dev/sda rw console=ttyS0" &
     - QEMU_PID=$!