may not work anyway and i'm boned b/c it needs to run on the real mai… #24
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: "GitHub Advanced Security - CodeQL" | ||
|
Check failure on line 1 in .github/workflows/codeql-advanced-security.yml
|
||
| on: | ||
| push: | ||
| branches: [ "master" ] | ||
| pull_request: | ||
| branches: [ "master" ] | ||
| # schedule: | ||
| # Run CodeQL analysis every day at 2 AM UTC | ||
| # - cron: '0 2 * * *' | ||
| # Enable GitHub Advanced Security features | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
| pull-requests: write | ||
| jobs: | ||
| analyze: | ||
| name: CodeQL Analysis for Java | ||
| runs-on: 'ubuntu-latest' | ||
| continue-on-error: true | ||
| # runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
| pull-requests: write | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - language: 'java-kotlin' | ||
| build-mode: 'manual' | ||
| - language: 'javascript' | ||
| build-mode: 'none' | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| # Fetch full history for better analysis | ||
| fetch-depth: 0 | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
| # - name: Build Java-Kotlin code | ||
| - name: Validate Gradle Wrapper | ||
| uses: gradle/actions/wrapper-validation@v3 | ||
| - name: Setup Java (Java/Kotlin) | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '11' | ||
| - run: touch local.properties | ||
| - name: Build with Gradle | ||
| run: chmod +x ./gradlew | ||
| run: gradle wrapper | ||
| run: chmod +x ./gradlew | ||
| run: ./gradlew build | ||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||