Skip to content

Commit 92fabe5

Browse files
authored
Merge pull request #904 from bheesham/add-all-apps
Prepare to deny auth if application isn't listed
2 parents 0fa4e7e + fc6b54e commit 92fabe5

File tree

5 files changed

+1809
-26
lines changed

5 files changed

+1809
-26
lines changed

.github/workflows/lint-apps.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Lint apps.yml
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: "0 13 * * *" # 9AM EST, 6AM PST, 1PM UTC
9+
10+
jobs:
11+
lint:
12+
name: Lint against Auth0
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Install dependencies
18+
run: |
19+
pip install -U pip
20+
pip install -r requirements.txt
21+
- name: Generate apps.new.yml
22+
env:
23+
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
24+
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
25+
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
26+
run: |
27+
python tools/lint-apps
28+
- name: Generate diff
29+
run: |
30+
if ! diff -Naru apps.yml apps.new.yml > proposed.patch; then
31+
echo ===========================
32+
echo There are changes required!
33+
echo ===========================
34+
echo
35+
echo Consider running ./tools/lint-apps. Or, apply the following patch
36+
echo using:
37+
echo
38+
printf " patch -p1 apps.yml < proposed.patch # if you've downloaded it to a file\n"
39+
echo or
40+
printf " pbpaste | patch -p1 apps.yml # if you've copied it to your clipboard\n"
41+
echo
42+
echo ===========================
43+
cat proposed.patch
44+
exit 1
45+
fi

0 commit comments

Comments
 (0)