Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit d5c49b2

Browse files
committed
Change user that we run script with
1 parent e610eb4 commit d5c49b2

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

codeql-learninglab-check/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ USER root
2020
RUN apt-get install -y git curl
2121
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
2222
RUN apt-get install -y nodejs
23-
USER codeql
23+
24+
# Temporarily disable running script as user codeql as we're unable to run
25+
# certain git commands due to permissions
26+
# USER codeql
2427

2528
# Add CodeQL repo
26-
RUN git clone https://github.com/Semmle/ql.git ~/codeql-home/codeql-repo
29+
RUN git clone https://github.com/Semmle/ql.git /home/codeql/codeql-home/codeql-repo
2730

2831
WORKDIR /home/codeql/codeql-home/codeql-repo/
2932
RUN git checkout ed97be459fed23c9f07a0e1895176bad7ba6c686

codeql-learninglab-check/publish.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ set -x
55

66
docker login docker.pkg.github.com -u github-actions -p ${GITHUB_TOKEN}
77

8-
IMAGE_VERSION=v0.0.2
9-
IMAGE_TAG=docker.pkg.github.com/github/codeql-learninglab-actions/codeql-learninglab-check:${IMAGE_VERSION}
8+
PREV_IMAGE_VERSION=v0.0.2
9+
IMAGE_VERSION=v0.0.3
10+
IMAGE_PATH=docker.pkg.github.com/github/codeql-learninglab-actions/codeql-learninglab-check
11+
IMAGE_TAG=${IMAGE_PATH}:${IMAGE_VERSION}
12+
13+
# Pull the previous image to optimise build and skip uneccesary steps and share
14+
# more of the image with previous versions
15+
docker pull ${IMAGE_PATH}:${PREV_IMAGE_VERSION}
1016

1117
if docker pull $IMAGE_TAG; then
1218
echo "image tag already exist, skipping..."

courses/cpp/ctf-segv/image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.pkg.github.com/github/codeql-learninglab-actions/codeql-learninglab-check:v0.0.2
1+
FROM docker.pkg.github.com/github/codeql-learninglab-actions/codeql-learninglab-check:v0.0.3
22

33
## Specific Course
44
COPY --chown=codeql:codeql config /home/codeql/config

0 commit comments

Comments
 (0)