Skip to content

Commit e8fbf0f

Browse files
committed
SCAN-5649 : Tidy up.
1 parent 1b33bd2 commit e8fbf0f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

scripts/github-event.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"ref": "refs/local/test",
33
"repository": {
44
"default_branch": "test"
5-
}
5+
}
66
}

scripts/run-container-locally.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
# INPUT_${var} where var corresponds to those defined in action.yml uppercased
4+
#
5+
# Other env vars are those normally passed in by the github actions runner
6+
# as defined here https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
7+
38
docker run \
49
-e INPUT_APIURL=$CONTRAST__API__URL \
510
-e INPUT_APIUSERNAME=$CONTRAST__API__USER_NAME \
@@ -11,8 +16,8 @@ docker run \
1116
-e INPUT_CODEQUALITY=false \
1217
-e INPUT_PATH=src \
1318
-e INPUT_LABEL="local-test" \
14-
-e INPUT_TOKEN=$GITHUB_TOKEN \
15-
-e ACTIONS_RUNTIME_TOKEN=$GITHUB_TOKEN \
19+
-e INPUT_TOKEN=unknown \
20+
-e ACTIONS_RUNTIME_TOKEN=unknown \
1621
-e RUNNER_TEMP=/tmp \
1722
-e GITHUB_JOB="local-test" \
1823
-e GITHUB_REF="refs/local/test" \

0 commit comments

Comments
 (0)