File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 82
82
else
83
83
echo "No repository name change detected."
84
84
fi
85
+ security_check_production_main :
86
+ runs-on : ubuntu-latest
87
+ # if: startsWith(github.ref, 'refs/heads/main')
88
+ if : ${{ (startsWith(github.ref, 'refs/heads/main') && contains('["tainguyenbp"]', github.actor)) }}
89
+ environment : production
90
+ # runs-on: [self-hosted, Linux, X64] # run with runner self hosted
91
+ steps :
92
+ - name : Check Repository Name Changes
93
+ if : startsWith(github.ref, 'refs/heads/main')
94
+ run : |
95
+ if [ "$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})" != "" ]; then
96
+ echo "Repository name changed. Triggering security checks..."
97
+ echo "${{ github.event.before }} - ${{ github.sha }}"
98
+
99
+ # Add security checks and notifications here
100
+ # You can send telegram notifications
101
+ else
102
+ echo "No repository name change detected."
103
+ fi
Original file line number Diff line number Diff line change 82
82
else
83
83
echo "No repository name change detected."
84
84
fi
85
+ security_check_production_main :
86
+ runs-on : ubuntu-latest
87
+ # if: startsWith(github.ref, 'refs/heads/main')
88
+ if : ${{ (startsWith(github.ref, 'refs/heads/main') && contains('["tainguyenbp"]', github.actor)) }}
89
+ environment : production
90
+ # runs-on: [self-hosted, Linux, X64] # run with runner self hosted
91
+ steps :
92
+ - name : Check Repository Name Changes
93
+ if : startsWith(github.ref, 'refs/heads/main')
94
+ run : |
95
+ if [ "$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})" != "" ]; then
96
+ echo "Repository name changed. Triggering security checks..."
97
+ echo "${{ github.event.before }} - ${{ github.sha }}"
98
+
99
+ # Add security checks and notifications here
100
+ # You can send telegram notifications
101
+ else
102
+ echo "No repository name change detected."
103
+ fi
You can’t perform that action at this time.
0 commit comments