File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 7171 echo "CodeQL Home: $QLT_CODEQL_HOME"
7272 echo "CodeQL Binary: $QLT_CODEQL_PATH"
7373
74+ - name : Upgrade CodeQL pack lock files
75+ if : steps.check-version.outputs.update_needed == 'true'
76+ shell : bash
77+ run : |
78+ echo "Upgrading CodeQL pack lock files"
79+ echo "Finding all directories with qlpack.yml files..."
80+
81+ # Find all directories containing qlpack.yml files
82+ find . -name "qlpack.yml" -type f | while read -r qlpack_file; do
83+ pack_dir=$(dirname "$qlpack_file")
84+ echo "Upgrading pack in directory: $pack_dir"
85+
86+ # Change to the directory and run codeql pack upgrade
87+ cd "$pack_dir"
88+ codeql pack upgrade
89+ cd - > /dev/null
90+ done
91+
92+ echo "Finished upgrading all CodeQL pack lock files"
93+
7494 - name : Create Pull Request
7595 if : steps.check-version.outputs.update_needed == 'true'
7696 uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
83103 - Updated `CodeQLCLI` to `${{ steps.check-version.outputs.latest_version }}`
84104 - Updated `CodeQLStandardLibrary` to `codeql-cli/${{ steps.check-version.outputs.latest_version_tag }}`
85105 - Updated `CodeQLCLIBundle` to `codeql-bundle-${{ steps.check-version.outputs.latest_version_tag }}`
106+ - Upgraded all CodeQL pack lock files using `codeql pack upgrade`
86107 commit-message : " Upgrade CodeQL CLI dependency to ${{ steps.check-version.outputs.latest_version_tag }}"
87108 delete-branch : true
88109 branch : " codeql/upgrade-to-${{ steps.check-version.outputs.latest_version_tag }}"
You can’t perform that action at this time.
0 commit comments