Improvement: Added the Ability to Stop Individual Techs from Appearing in the Salvage Op Tech Picker #12385
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CodeQL" | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| paths-ignore: | |
| - "**/*.pdf" | |
| - "**/*.xml" | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| strategy: | |
| fail-fast: false | |
| runs-on: [ ubuntu-latest ] | |
| outputs: | |
| mmRepo: ${{ steps.find_mm.outputs.mmRepo }} | |
| mmBranch: ${{ steps.find_mm.outputs.mmBranch }} | |
| steps: | |
| - name: Find the Right MegaMek Branch | |
| id: find_mm | |
| shell: bash {0} | |
| run: | | |
| git ls-remote --exit-code --heads ${{ github.event.pull_request.head.repo.owner.html_url }}/megamek.git ${{ github.event.pull_request.head.ref }} | |
| if [ "$?" == "0" ] | |
| then | |
| echo "mmRepo=${{ github.event.pull_request.head.repo.owner.login }}/megamek" >> $GITHUB_OUTPUT | |
| echo "mmBranch=${{ github.event.pull_request.head.ref }}" >> $GITHUB_OUTPUT | |
| else | |
| echo "mmRepo=MegaMek/megamek" >> $GITHUB_OUTPUT | |
| echo "mmBranch=main" >> $GITHUB_OUTPUT | |
| fi | |
| exit 0 | |
| - name: Checkout MegaMek | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: ${{ steps.find_mm.outputs.mmRepo }} | |
| ref: ${{ steps.find_mm.outputs.mmBranch }} | |
| path: megamek | |
| - name: Find the Right MegaMekLab Branch | |
| id: find_mml | |
| shell: bash {0} | |
| run: | | |
| git ls-remote --exit-code --heads ${{ github.event.pull_request.head.repo.owner.html_url }}/megameklab.git ${{ github.event.pull_request.head.ref }} | |
| if [ "$?" == "0" ] | |
| then | |
| echo "mmlRepo=${{ github.event.pull_request.head.repo.owner.login }}/megameklab" >> $GITHUB_OUTPUT | |
| echo "mmlBranch=${{ github.event.pull_request.head.ref }}" >> $GITHUB_OUTPUT | |
| else | |
| echo "mmlRepo=MegaMek/megameklab" >> $GITHUB_OUTPUT | |
| echo "mmlBranch=main" >> $GITHUB_OUTPUT | |
| fi | |
| exit 0 | |
| - name: Checkout MegaMekLab | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: ${{ steps.find_mml.outputs.mmlRepo }} | |
| ref: ${{ steps.find_mml.outputs.mmlBranch }} | |
| path: megameklab | |
| - name: "Check out MekHQ" | |
| uses: actions/checkout@v6 | |
| with: | |
| path: mekhq | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: java-kotlin | |
| build-mode: none | |
| queries: security-and-quality | |
| source-root: mekhq | |
| config: | | |
| paths: | |
| - mekhq | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |