From 4a2b963fb5686693e0a53a7c7b67a1cbafed7d08 Mon Sep 17 00:00:00 2001 From: Tobias Kaupat Date: Sun, 18 Oct 2026 10:13:14 +0200 Subject: [PATCH] ci: least-privilege permissions, concurrency cancel and job timeouts Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 398e639..541ab37 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,9 +6,17 @@ on: pull_request: branches: [ "master" ] +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: shellcheck: runs-on: ubuntu-latest + timeout-minutes: 20 steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,6 +40,7 @@ jobs: test: runs-on: ubuntu-latest + timeout-minutes: 20 steps: - name: Checkout repository uses: actions/checkout@v4