]> git.99rst.org Git - stevenblack-hosts.git/commitdiff
Update GitHub Actions workflows
authorXhmikosR <redacted>
Sun, 5 Jul 2026 14:06:36 +0000 (17:06 +0300)
committerXhmikosR <redacted>
Sun, 5 Jul 2026 14:06:36 +0000 (17:06 +0300)
- 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

.github/workflows/ci.yml
.github/workflows/codeql-analysis.yml
.github/workflows/container.yml
.github/workflows/deps-review.yaml [moved from .github/workflows/depsreview.yaml with 90% similarity]

index 4ff4ec9aa48aea2ab3c95ebbdbfa6a03b2938a26..2574d85461a83d2152fa00d855074d8745009ef3 100644 (file)
@@ -15,6 +15,7 @@ jobs:
   test:
     name: Python ${{ matrix.python }} on ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
+    timeout-minutes: 15
 
     strategy:
       fail-fast: false
index f7b75d69f0f97f24bfb6c74d0af87822b53cc61c..35e390b96f9d4cf96355ac8892b65a1a2db6a396 100644 (file)
@@ -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 }}"
index 1990f50c20eeb65152c5645a2a80d950ee7439a0..6e2aee37c297c95e0fe07cb8a536407c74af98ca 100644 (file)
@@ -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
similarity index 90%
rename from .github/workflows/depsreview.yaml
rename to .github/workflows/deps-review.yaml
index e60722ffffaedb83d8746d2d1bd057b012b119a2..771167c128bccba27b19d216f81bfec33ae5e810 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT