From eb179f35d83ec59b891b7b577906f5b2a7d214cb Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Thu, 17 Sep 2026 10:36:19 +0300 Subject: [PATCH] [improve][ci] Upgrade approved actions and check the ASF allowlist Assisted-by: Codex --- .github/workflows/ci-unit.yaml | 8 ++++++-- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/publish-to-nuget.yml | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml index ad10a323a..a853104a7 100644 --- a/.github/workflows/ci-unit.yaml +++ b/.github/workflows/ci-unit.yaml @@ -31,9 +31,13 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 120 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 + - name: Check ASF action allowlist + uses: apache/infrastructure-actions/allowlist-check@main + with: + scan-glob: '.github/**/*.y*ml' - name: Setup dotnet - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v6 id: setupstep with: dotnet-version: '9.0.x' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fb383af21..51528bf93 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -23,17 +23,17 @@ jobs: build-mode: autobuild steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 # Add .NET 9 setup before CodeQL initialization - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v6 with: dotnet-version: 9.x # Initializes the CodeQL tools for scanning - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -49,6 +49,6 @@ jobs: exit 1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/publish-to-nuget.yml b/.github/workflows/publish-to-nuget.yml index 554528375..30446d522 100644 --- a/.github/workflows/publish-to-nuget.yml +++ b/.github/workflows/publish-to-nuget.yml @@ -31,7 +31,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set nuget package version from git tag if: ${{ github.ref_type == 'tag' }} @@ -40,7 +40,7 @@ jobs: run: echo "VERSION=${TAG#v}" >> $GITHUB_ENV - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v6 with: dotnet-version: '9.0.x'