Skip to content

Commit 4f81a01

Browse files
author
EC2 Default User
committed
Update GitHub workflows with App token
1 parent 11e2f47 commit 4f81a01

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/mysql-version-check.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Block MySQL 5.x Usage
2-
32
on:
43
pull_request:
54
branches:
65
- develop
7-
86
jobs:
97
mysql-check:
108
runs-on:
119
labels: self-hosted
12-
1310
steps:
11+
- name: Create GitHub App token
12+
id: github-app-token
13+
uses: actions/create-github-app-token@v2
14+
with:
15+
app-id: ${{ secrets.InsiderActionsApplication_APP_ID }}
16+
private-key: ${{ secrets.InsiderActionsApplication_PRIVATE_KEY }}
1417
- name: Checkout code
1518
uses: actions/checkout@v4
16-
1719
- name: Check for MySQL 5.x
1820
run: |
1921
echo "Scanning for MySQL 5.x usage..."
@@ -30,4 +32,4 @@ jobs:
3032
exit 1
3133
else
3234
echo "No MySQL 5.x usage found."
33-
fi
35+
fi

0 commit comments

Comments
 (0)