Bump actions/attest from 4.2.0 to 4.2.2 #342
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 ] | |
| schedule: | |
| - cron: '21 3 * * 1' | |
| permissions: | |
| security-events: write | |
| contents: read | |
| jobs: | |
| analyze: | |
| name: Analyze pinned paired C# solution | |
| runs-on: windows-2025 | |
| defaults: | |
| run: | |
| working-directory: arsvin | |
| env: | |
| ARIEC61850_ROOT: ${{ github.workspace }}\ARIEC61850 | |
| steps: | |
| - name: Checkout ARSVIN into paired workspace | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| path: arsvin | |
| - name: Resolve pinned ARIEC61850 revision | |
| id: engine_pin | |
| shell: pwsh | |
| run: | | |
| $pin = .\scripts\resolve-engine-pin.ps1 -AsObject | |
| "repository=$($pin.Repository)" | Add-Content $env:GITHUB_OUTPUT | |
| "commit=$($pin.Commit)" | Add-Content $env:GITHUB_OUTPUT | |
| - name: Checkout pinned sibling ARIEC61850 | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| repository: ${{ steps.engine_pin.outputs.repository }} | |
| ref: ${{ steps.engine_pin.outputs.commit }} | |
| path: ARIEC61850 | |
| - name: Verify pinned engine commit | |
| shell: pwsh | |
| run: | | |
| $actual = (git -C "$env:ARIEC61850_ROOT" rev-parse HEAD).Trim().ToLowerInvariant() | |
| $expected = '${{ steps.engine_pin.outputs.commit }}'.ToLowerInvariant() | |
| if ($actual -ne $expected) { | |
| throw "Pinned engine mismatch. Expected $expected, found $actual." | |
| } | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 | |
| with: | |
| dotnet-version: 8.0.4xx | |
| cache: true | |
| cache-dependency-path: | | |
| arsvin/Directory.Packages.props | |
| arsvin/src/**/packages.lock.json | |
| arsvin/tests/**/packages.lock.json | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3 | |
| with: | |
| languages: csharp | |
| build-mode: manual | |
| - name: Restore pinned paired solution dependency graph | |
| run: dotnet restore ARSVIN.sln | |
| - name: Build pinned paired solution with warnings as errors | |
| run: dotnet build ARSVIN.sln -c Release --no-restore -warnaserror | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3 |