Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# The thin wrapper shells out to game-ci/cli, which detects the engine
# (and Unity version) from ProjectSettings/ProjectVersion.txt in the
# checked-out workspace - unlike the old self-contained action, it's
# no longer enough for this job to just check out unity-activate's own
# repo with no Unity project in it ("Engine not detected from
# projectPath"). Write a minimal fixture matching the matrix version.
- name: Write a minimal Unity project fixture
run: |
mkdir -p ProjectSettings
echo "m_EditorVersion: ${{ matrix.unityVersion }}" > ProjectSettings/ProjectVersion.txt

# Activate Unity
- name: Activate Unity
uses: ./
Expand Down
23 changes: 23 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
ignore:
SNYK-JS-ACTIONSGLOB-11484208:
- '*':
reason: >-
ReDoS in @actions/glob's globEscape (CVE-2025-5890). Snyk lists every
published version as affected - the upstream fix is on master but has
not been released - so there is no version of @actions/glob to upgrade
to. It reaches this action only as a transitive dependency of
@actions/cache, which we use to cache the game-ci CLI download.

Not reachable with attacker-controlled input here: the only paths
handed to @actions/cache are built by cacheDirFor() in
src/download-cli.ts as os.tmpdir()/game-ci-cli-cache/<version>, and
<version> is validated against PINNED_VERSION_PATTERN before it is
used. No user-supplied glob pattern reaches globEscape.

Revisit when @actions/glob publishes a release containing the fix,
then drop this entry and bump the dependency.
expires: 2027-03-04T00:00:00.000Z
created: 2026-09-04T00:00:00.000Z
patch: {}
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ inputs:
unityVersion:
required: false
default: '2019.2.11f1'
description: 'Version of unity to use for building the project.'
description: >-
Unused: kept for backward compatibility with existing workflows. The
underlying game-ci CLI detects the Unity version from the checked-out
project itself (ProjectSettings/ProjectVersion.txt).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this isn't actually a behavioural change, possibly breaking?

cliVersion:
required: false
default: 'latest'
description: >-
Release tag of the game-ci/cli binary to install and run (e.g.
"v0.1.0"). Defaults to the latest release; pin this for reproducible
builds.
outputs: {}
branding:
icon: 'box'
Expand Down
15 changes: 0 additions & 15 deletions dist/Dockerfile

This file was deleted.

121 changes: 0 additions & 121 deletions dist/entrypoint.sh

This file was deleted.

Loading
Loading