Skip to content

Commit 7c896f2

Browse files
fix yaml file
1 parent fb7f617 commit 7c896f2

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ jobs:
2828
# }
2929

3030
authorize:
31-
runs-on: [self-hosted, linux, poc]
32-
steps:
33-
- name: Check local whitelist
34-
run: |
35-
ACTOR="${{ github.actor }}"
36-
echo "Checking whitelist for: $ACTOR"
37-
if ! grep -q "^$ACTOR$" /home/ycolera/Document/self_hosted_runner/whitelist.txt ; then
38-
echo "❌ $ACTOR is not allowed to run this sensitive CI."
39-
exit 1
40-
else
41-
echo "✅ $ACTOR is authorized."
42-
fi
31+
runs-on: [self-hosted, linux, poc]
32+
steps:
33+
- name: Check local whitelist
34+
run: |
35+
ACTOR="${{ github.actor }}"
36+
echo "Checking whitelist for: $ACTOR"
37+
if ! grep -q "^$ACTOR$" /home/ycolera/Document/self_hosted_runner/whitelist.txt ; then
38+
echo "❌ $ACTOR is not allowed to run this sensitive CI."
39+
exit 1
40+
else
41+
echo "✅ $ACTOR is authorized."
42+
fi
4343
4444
test:
4545
needs: authorize # le job test ne s'exécute que si authorize passe

0 commit comments

Comments
 (0)