From 02af18d283ef4fa80c75704ae7b52a5eda3af336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Stormacq?= Date: Sat, 25 Oct 2025 12:33:20 +0200 Subject: [PATCH 1/2] Change Swift workflow to Ubuntu and simplify triggers Updated the Swift workflow to run on Ubuntu instead of macOS and simplified the trigger conditions. --- .github/workflows/swift.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..3cf5044 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,19 @@ +# Simple test to obtain a green badge when merging to main branch + +name: Swift Simple Check + +on: + push: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v From 25c40acef278c278061964309ba2cfba754cfe37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Stormacq?= Date: Sat, 25 Oct 2025 12:34:54 +0200 Subject: [PATCH 2/2] Potential fix for code scanning alert no. 1: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/swift.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 3cf5044..ade5e33 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -2,6 +2,9 @@ name: Swift Simple Check +permissions: + contents: read + on: push: branches: [ "main" ]