diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d08569d..b055861 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,8 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + version: 2 updates: # Enable version updates for GitHub Actions diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 7abb6bb..3711ffe 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -57,14 +57,14 @@ jobs: | Property | Value | | --- | --- | - | Repository | `${{ github.repository }}` | - | Branch | `${{ github.ref_name }}` | - | Language | `${{ matrix.language }}` | - | Commit | `${{ github.sha }}` | + | Repository | ``${{ github.repository }}`` | + | Branch | ``${{ github.ref_name }}`` | + | Language | ``${{ matrix.language }}`` | + | Commit | ``${{ github.sha }}`` | "@ - $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY + $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -97,7 +97,7 @@ jobs: "@ - $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY + $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 @@ -113,9 +113,9 @@ jobs: ✅ CodeQL security analysis completed successfully. - **Language analyzed:** `${{ matrix.language }}` + **Language analyzed:** ``${{ matrix.language }}`` > Check the Security tab for detailed findings and recommendations. "@ - $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY + $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8 diff --git a/.github/workflows/vendor.yml b/.github/workflows/vendor.yml index 4bac91c..d37034f 100644 --- a/.github/workflows/vendor.yml +++ b/.github/workflows/vendor.yml @@ -31,14 +31,14 @@ jobs: - name: Summary - Workflow started shell: pwsh run: | - $summary = @" - ## 📦 Update Vendor - Workflow Summary + $summary = @( + '## 📦 Update Vendor - Workflow Summary' + '' + '🔍 Checking for vendor dependency updates...' + '' + ) - 🔍 Checking for vendor dependency updates... - - "@ - - $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY + $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8 - id: make-changes name: Checking for updates @@ -163,21 +163,21 @@ jobs: $count = [int]$env:COUNT_UPDATED if ($count -eq 0) { - $summary = @" - ### ✅ No Updates Available - - All vendor dependencies are up to date! 🎉 - "@ + $summary = @( + '### ✅ No Updates Available' + '' + 'All vendor dependencies are up to date! 🎉' + ) } else { $word = if ($count -eq 1) { 'dependency' } else { 'dependencies' } - $summary = @" - ### 🔄 Updates Found - - 📦 **$env:SINGLE_DEP_NAME** updated from ``$env:SINGLE_DEP_OLD_VERSION`` to ``$env:SINGLE_DEP_NEW_VERSION`` - - 📦 **$count** vendor $word updated: - - "@ + $summary = @( + '### 🔄 Updates Found' + '' + "📦 **$env:SINGLE_DEP_NAME** updated from ``$env:SINGLE_DEP_OLD_VERSION`` to ``$env:SINGLE_DEP_NEW_VERSION``" + '' + '📦 **$count** vendor $word updated:' + '' + ) } $summary += "$env:UPDATE_MESSAGE" @@ -261,16 +261,16 @@ jobs: if: env.COUNT_UPDATED > 0 && (env.HAS_BREAKING_CHANGES == 'True' || env.AUTO_MERGED == 'false') shell: pwsh run: | - $summary = @" - ### 🎉 Pull Request Created - - A pull request has been created to update the vendor dependencies. - - **Branch:** `update-vendor` - - $env:LIST_UPDATED -and "**Updated dependencies:** $env:LIST_UPDATED" -or "**Updated dependencies:** - - "@ + $summary = @( + '### 🎉 Pull Request Created' + '' + 'A pull request has been created to update the vendor dependencies.' + '' + '**Branch:** `update-vendor`' + '' + "$env:LIST_UPDATED -and "**Updated dependencies:** $env:LIST_UPDATED" -or "**Updated dependencies:**" + '' + ) if ($env:HAS_BREAKING_CHANGES -eq 'True') { $summary += "> ⚠️ **Manual review required:** This update contains major version changes." @@ -283,4 +283,4 @@ jobs: "@ - $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY + $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8