From cd6a8876882644354921a64321419b221bf8161a Mon Sep 17 00:00:00 2001 From: Dmytro Novash Date: Mon, 12 Aug 2024 18:32:53 +0300 Subject: [PATCH] update github actions --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/phpmd.yml | 13 ++++--------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ea358e3..a1af5ba 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -37,11 +37,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -52,7 +52,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -66,4 +66,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/phpmd.yml b/.github/workflows/phpmd.yml index 9db0ba2..030aafc 100644 --- a/.github/workflows/phpmd.yml +++ b/.github/workflows/phpmd.yml @@ -36,11 +36,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP - uses: shivammathur/setup-php@aa1fe473f9c687b6fb896056d771232c0bc41161 + uses: shivammathur/setup-php@v2 with: + php-version: '8.0' coverage: none tools: phpmd @@ -48,11 +49,5 @@ jobs: run: php ./compiler.php - name: Run PHPMD - run: phpmd ./dist sarif codesize --reportfile phpmd-results.sarif + run: phpmd ./src github --exclude './src/includes/*' continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: phpmd-results.sarif - wait-for-processing: true