From: XhmikosR Date: Sun, 5 Jul 2026 14:06:36 +0000 (+0300) Subject: Update GitHub Actions workflows X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=cf34812381f0b8cae023307c29b37ded00bd4ad5;p=stevenblack-hosts.git Update GitHub Actions workflows - CodeQL: scan Actions workflows too, switch to build-mode none matrix, drop autobuild - container: attach build provenance and SBOM to the image - add timeout-minutes to all jobs --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ff4ec9aa..2574d8546 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: test: name: Python ${{ matrix.python }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} + timeout-minutes: 15 strategy: fail-fast: false diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f7b75d69f..35e390b96 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -15,13 +15,23 @@ on: jobs: analyze: - name: Analyze + name: Analyze (${{ matrix.language }}) runs-on: ubuntu-latest + timeout-minutes: 30 permissions: actions: read contents: read security-events: write + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: python + build-mode: none + steps: - name: Clone repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 @@ -31,13 +41,11 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 with: - languages: "python" + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} queries: +security-and-quality - - name: Autobuild - uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 with: - category: "/language:python" + category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 1990f50c2..6e2aee37c 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -15,6 +15,7 @@ jobs: build-and-push-image: name: Build and push container image runs-on: ubuntu-latest + timeout-minutes: 20 permissions: contents: read packages: write @@ -47,3 +48,5 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + provenance: true + sbom: true diff --git a/.github/workflows/depsreview.yaml b/.github/workflows/deps-review.yaml similarity index 90% rename from .github/workflows/depsreview.yaml rename to .github/workflows/deps-review.yaml index e60722fff..771167c12 100644 --- a/.github/workflows/depsreview.yaml +++ b/.github/workflows/deps-review.yaml @@ -1,5 +1,7 @@ name: 'Dependency Review' -on: [pull_request] + +on: + pull_request: permissions: contents: read @@ -7,6 +9,7 @@ permissions: jobs: dependency-review: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Clone repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0