File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments