Skip to content

Commit a6eac46

Browse files
committed
Fix: Ensure SECURE_API_TOKEN is injected properly
1 parent 143bf3b commit a6eac46

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/scan.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ jobs:
1414
SYS_DIG_SECURE_URL: https://app.au1.sysdig.com
1515

1616
steps:
17-
- name: 🛎️ Checkout code
17+
- name: Checkout code
1818
uses: actions/checkout@v3
1919

20-
- name: 🏗️ Build Docker images
20+
- name: Build Docker images
2121
run: |
2222
docker build -t voting-app ./vote
2323
docker build -t worker ./worker
2424
docker build -t result ./result
2525
26-
- name: 🔍 DEBUG: Check if SECURE_API_TOKEN is available
27-
env:
28-
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
26+
- name: Debug: Check if SECURE_API_TOKEN is available
2927
run: |
30-
echo "🔍 Token Length: ${#SECURE_API_TOKEN}"
31-
echo "🔍 Token Head: ${SECURE_API_TOKEN:0:5}"
28+
echo "Token Length: ${#SECURE_API_TOKEN}"
29+
echo "Token Head: ${SECURE_API_TOKEN:0:5}"
3230
if [ -z "$SECURE_API_TOKEN" ]; then
33-
echo "SECURE_API_TOKEN is NOT set!"
31+
echo "SECURE_API_TOKEN is NOT set!"
3432
exit 1
3533
else
36-
echo "SECURE_API_TOKEN is available."
34+
echo "SECURE_API_TOKEN is available."
3735
fi
36+
env:
37+
SECURE_API_TOKEN: ${{ secrets.SECURE_API_TOKEN }}
3838

39-
- name: 🔍 Run Sysdig Scan (voting-app)
39+
- name: Run Sysdig Scan (voting-app)
4040
run: |
4141
docker run --rm \
4242
--platform linux/amd64 \

0 commit comments

Comments
 (0)