File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -87,15 +87,15 @@ jobs:
8787 - name : Filter out repo level issues that github can't handle
8888 run : |
8989 mv ./cx_result.sarif ./cx_result.sarif.orig
90- cat cx_result.sarif.orig | jq '. | .runs[0].results |= map(select(.locations[0].physicalLocation.artifactLocation.uri != ""))' > cx_result.sarif
90+ jq '. | .runs[0].results |= map(select(.locations[0].physicalLocation.artifactLocation.uri != ""))' cx_result.sarif.orig > cx_result.sarif
9191
9292 # This allows github to understand a security ci job has been run
9393 - name : Upload Checkmarx SARIF as artifact
94- uses : actions/upload-artifact@v4
94+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
9595 with :
9696 name : checkmarx-sarif
9797 path : cx_result.sarif
9898 - name : Upload SARIF file
99- uses : github/codeql-action/upload-sarif@v3
99+ uses : github/codeql-action/upload-sarif@86b04fb0e47484f7282357688f21d5d0e32175fe # v3.29.2
100100 with :
101101 sarif_file : cx_result.sarif
Original file line number Diff line number Diff line change 44CONTAINER_NAME=" midnight"
55
66# Check if the container already exists
7- if [ $( docker ps -a -f name=^${CONTAINER_NAME} $ --format ' {{.Names}}' | grep -w ${CONTAINER_NAME} | wc -l) -eq 0 ]; then
7+ if [ $( docker ps -a -f name=^${CONTAINER_NAME} $ --format ' {{.Names}}' | grep -w " ${CONTAINER_NAME} " | wc -l) -eq 0 ]; then
88 echo " Container '${CONTAINER_NAME} ' does not exist. Creating and starting it..."
9-
9+
1010 # Run the container with the specified configuration
1111 docker run -it \
1212 --name ${CONTAINER_NAME} \
@@ -18,13 +18,13 @@ if [ $(docker ps -a -f name=^${CONTAINER_NAME}$ --format '{{.Names}}' | grep -w
1818 " ${MIDNIGHT_NODE_IMAGE} "
1919else
2020 echo " Container '${CONTAINER_NAME} ' already exists. Opening an interactive shell..."
21-
21+
2222 # Check if the container is running, if not, start it
23- if [ $( docker ps -f name=^${CONTAINER_NAME} $ --format ' {{.Names}}' | grep -w ${CONTAINER_NAME} | wc -l) -eq 0 ]; then
23+ if [ $( docker ps -f name=^${CONTAINER_NAME} $ --format ' {{.Names}}' | grep -w " ${CONTAINER_NAME} " | wc -l) -eq 0 ]; then
2424 echo " Starting container '${CONTAINER_NAME} '..."
2525 docker start ${CONTAINER_NAME}
2626 fi
27-
27+
2828 # Open an interactive shell in the container
2929 docker exec -it ${CONTAINER_NAME} /bin/bash
30- fi
30+ fi
You can’t perform that action at this time.
0 commit comments