From bb697b3f1c06d0f296e85ff7102bdca9f427a786 Mon Sep 17 00:00:00 2001 From: Pierre Janineh Date: Sun, 31 May 2026 07:35:52 +0300 Subject: [PATCH 1/2] ci: set least-privilege permissions on Build & Test workflow Resolves CodeQL `actions/missing-workflow-permissions` alerts: declare a top-level `permissions: contents: read` so the GITHUB_TOKEN isn't granted broad default scopes. Both jobs only check out and build. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5b1574..7a8d67b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,10 @@ on: push: branches: [main] +# Least-privilege GITHUB_TOKEN — these jobs only check out and build. +permissions: + contents: read + # Cancel superseded runs for the same ref (e.g. rapid pushes to an open PR). concurrency: group: ${{ github.workflow }}-${{ github.ref }} From e1ec26f43cf6fdc73a3e296f25e1dfc1fa133f41 Mon Sep 17 00:00:00 2001 From: Pierre Janineh Date: Sun, 31 May 2026 18:26:56 +0300 Subject: [PATCH 2/2] style: add standard file header to ProgressUITests files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The three test files were created without the project's standard "Created by Pierre Janineh on …" header block; add it to match every other source file. Co-Authored-By: Claude Opus 4.8 (1M context) --- Tests/ProgressUITests/GrowDirectionTests.swift | 2 ++ Tests/ProgressUITests/OptionsTests.swift | 2 ++ Tests/ProgressUITests/ProgressableTests.swift | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Tests/ProgressUITests/GrowDirectionTests.swift b/Tests/ProgressUITests/GrowDirectionTests.swift index 701b1e9..18834e0 100644 --- a/Tests/ProgressUITests/GrowDirectionTests.swift +++ b/Tests/ProgressUITests/GrowDirectionTests.swift @@ -2,6 +2,8 @@ // GrowDirectionTests.swift // ProgressUI // +// Created by Pierre Janineh on 30/05/2026. +// import XCTest import SwiftUI diff --git a/Tests/ProgressUITests/OptionsTests.swift b/Tests/ProgressUITests/OptionsTests.swift index 2af7694..538edc6 100644 --- a/Tests/ProgressUITests/OptionsTests.swift +++ b/Tests/ProgressUITests/OptionsTests.swift @@ -2,6 +2,8 @@ // OptionsTests.swift // ProgressUI // +// Created by Pierre Janineh on 30/05/2026. +// import XCTest import SwiftUI diff --git a/Tests/ProgressUITests/ProgressableTests.swift b/Tests/ProgressUITests/ProgressableTests.swift index 994618d..89cf053 100644 --- a/Tests/ProgressUITests/ProgressableTests.swift +++ b/Tests/ProgressUITests/ProgressableTests.swift @@ -2,6 +2,8 @@ // ProgressableTests.swift // ProgressUI // +// Created by Pierre Janineh on 30/05/2026. +// import XCTest import SwiftUI