@@ -87,17 +87,17 @@ jobs:
8787 - name : Run Sphinx build
8888 run : ci/build_sphinx_docs.sh
8989
90- # Action temporarily disabled due to security concerns on tj-actions/changed-files
91- # check_changed_files:
92- # name: Check Changed Files
93- # runs-on: ubuntu-22.04
94- # steps:
95- # - uses: actions/checkout@v4
96- # - name: Get Changed Files
97- # id: get_changed_files
98- # uses: tj-actions/changed-files@v41
99- # - name: Check for Version Change
100- # run: ci/check_changed_files.py ${{ steps.get_changed_files.outputs.modified_files }} ${{ steps.get_changed_files.outputs.deleted_files }}
90+ check_changed_files :
91+ name : Check Changed Files
92+ runs-on : ubuntu-22.04
93+ steps :
94+ - uses : actions/checkout@v4
95+ with :
96+ fetch-depth : 2
97+ - name : Check for Version Change
98+ run : |
99+ readarray -t changed_files < <(git diff --name-only HEAD^1 HEAD)
100+ ci/check_changed_files.py "${changed_files[@]}"
101101
102102 check_migration_files :
103103 name : Check Database Migration Files
@@ -107,14 +107,14 @@ jobs:
107107 - name : Check Migration Files
108108 run : ci/check_database_migrations.py
109109
110- # Action temporarily disabled due to security concerns on tj-actions/changed-files
111- # check_for_version_bump:
112- # name: Check for Version Bump
113- # runs-on: ubuntu-22.04
114- # steps:
115- # - uses: actions/checkout@v4
116- # - name: Get Changed Files
117- # id: get_changed_files
118- # uses: tj-actions/changed-files@v41
119- # - name: Check for Version Change
120- # run: ci/check_version_bump.py ${{ steps.get_changed_files.outputs.all_changed_and_modified_files }}
110+ check_for_version_bump :
111+ name : Check for Version Bump
112+ runs-on : ubuntu-22.04
113+ steps :
114+ - uses : actions/checkout@v4
115+ with :
116+ fetch-depth : 2
117+ - name : Check for Version Change
118+ run : |
119+ readarray -t changed_files < <(git diff --name-only HEAD^1 HEAD)
120+ ci/check_version_bump.py "${changed_files[@]}"
0 commit comments