Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

ci: least-privilege token, cancel-in-progress; add dependabot + PR template

Gauthier Piarrette2e574136731a
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..527c935
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,12 @@
+<!-- Keep this short. Delete the guidance comments before submitting. -->
+
+## What this changes
+
+<!-- One or two sentences. Link the issue it closes, if any (e.g. "Closes #21"). -->
+
+## How it was verified
+
+<!-- What you actually ran. For code: `swift test` passing, plus anything you checked by hand. -->
+
+- [ ] `swift build` and `swift test` pass locally
+- [ ] Game results and recipes go to [highball-db](https://github.com/gauthierpiarrette/highball-db), not this repo
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..3a08af9
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,16 @@
+version: 2
+updates:
+ # Keep the pinned GitHub Actions in .github/workflows current (security patches).
+ - package-ecosystem: github-actions
+ directory: /
+ schedule:
+ interval: weekly
+ commit-message:
+ prefix: ci
+ # Swift package dependencies (Sparkle, swift-argument-parser).
+ - package-ecosystem: swift
+ directory: /
+ schedule:
+ interval: weekly
+ commit-message:
+ prefix: deps
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 48220c6..804b986 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,6 +2,13 @@ name: CI
on:
push: { branches: [main] }
pull_request:
+# Least privilege: CI only needs to read the checkout. No token write scope.
+permissions:
+ contents: read
+# One in-flight run per ref; a newer push/PR update cancels the older one.
+concurrency:
+ group: ci-${{ github.ref }}
+ cancel-in-progress: true
jobs:
build-test:
runs-on: macos-15
diff --git a/.gitignore b/.gitignore
index 4b86277..34c798e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,8 @@ DerivedData/
dist/
site/
private/
+
+# Stray single-file compile artifacts (e.g. from `swiftc File.swift` in the repo root)
+*.o
+*.d
+*.swiftdeps