Skip to content

Commit 1e654ea

Browse files
setup-steamcmd@v1.2.3 (#15)
Bumps the npm_and_yarn group with 1 update in the / directory: [undici](https://github.com/nodejs/undici). Updates `undici` from 5.28.4 to 5.28.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/nodejs/undici/releases">undici's releases</a>.</em></p> <blockquote> <h2>v5.28.5</h2> <h1>⚠️ Security Release ⚠️</h1> <p>Fixes CVE CVE-2025-22150 <a href="https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975">https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975</a> (embargoed until 22-01-2025).</p> <p><strong>Full Changelog</strong>: <a href="https://github.com/nodejs/undici/compare/v5.28.4...v5.28.5">https://github.com/nodejs/undici/compare/v5.28.4...v5.28.5</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/nodejs/undici/commit/6139ed2e0c787853243de58ef7c4301b26ca66f2"><code>6139ed2</code></a> Bumped v5.28.5</li> <li><a href="https://github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0"><code>711e207</code></a> Backport of c2d78cd</li> <li>See full diff in <a href="https://github.com/nodejs/undici/compare/v5.28.4...v5.28.5">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=undici&package-manager=npm_and_yarn&previous-version=5.28.4&new-version=5.28.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/RageAgainstThePixel/setup-steamcmd/network/alerts). </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stephen Hodgson <rage.against.the.pixel@gmail.com>
1 parent 423271c commit 1e654ea

7 files changed

Lines changed: 42 additions & 24 deletions

File tree

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [ macos-latest, windows-latest, ubuntu-latest ]
21+
os: [macos-latest, windows-latest, ubuntu-latest]
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: RageAgainstThePixel/setup-steamcmd

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
A GitHub Action to setup the [`steamcmd`](https://developer.valvesoftware.com/wiki/SteamCMD) command alias.
44

5-
## Exported Env Vars
6-
7-
- `STEAM_CMD` the `steamcmd` directory location.
8-
- `STEAM_DIR` the steam install directory location.
9-
- `STEAM_TEMP` the temp steam directory location.
10-
115
## How to use
126

137
```yaml
@@ -16,8 +10,7 @@ jobs:
1610
runs-on: ${{ matrix.os }}
1711
strategy:
1812
matrix:
19-
os: [ macos-latest, windows-latest, ubuntu-latest ]
20-
13+
os: [macos-latest, windows-latest, ubuntu-latest]
2114
steps:
2215
# download and setup the steamcmd
2316
- uses: RageAgainstThePixel/setup-steamcmd@v1
@@ -28,3 +21,11 @@ jobs:
2821
```
2922
3023
For a full list of `steamcmd` commands see [this list](https://github.com/dgibbs64/SteamCMD-Commands-List/blob/main/steamcmd_commands.txt).
24+
25+
## outputs
26+
27+
### environment variables
28+
29+
- `STEAM_CMD` the `steamcmd` directory location.
30+
- `STEAM_DIR` the steam install directory location.
31+
- `STEAM_TEMP` the temp steam directory location.

dist/index.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14032,6 +14032,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(4978)
1403214032
const { File: UndiciFile } = __nccwpck_require__(8511)
1403314033
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)
1403414034

14035+
let random
14036+
try {
14037+
const crypto = __nccwpck_require__(6005)
14038+
random = (max) => crypto.randomInt(0, max)
14039+
} catch {
14040+
random = (max) => Math.floor(Math.random(max))
14041+
}
14042+
1403514043
let ReadableStream = globalThis.ReadableStream
1403614044

1403714045
/** @type {globalThis['File']} */
@@ -14117,7 +14125,7 @@ function extractBody (object, keepalive = false) {
1411714125
// Set source to a copy of the bytes held by object.
1411814126
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
1411914127
} else if (util.isFormDataLike(object)) {
14120-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
14128+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
1412114129
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
1412214130

1412314131
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
@@ -28876,7 +28884,7 @@ async function findOrDownload() {
2887628884
core.debug(`Attempting to download ${steamcmd} from ${url} to ${archiveDownloadPath}`);
2887728885
const archivePath = await tc.downloadTool(url, archiveDownloadPath);
2887828886
core.debug(`Successfully downloaded ${steamcmd} to ${archivePath}`);
28879-
core.debug(`Extracting ${steamcmd} from ${archivePath}`);
28887+
core.debug(`Extracting ${steamcmd} from ${archivePath}...`);
2888028888
let downloadDirectory = path.join(getTempDirectory(), steamcmd);
2888128889
if (IS_WINDOWS) {
2888228890
downloadDirectory = await tc.extractZip(archivePath, downloadDirectory);
@@ -28927,11 +28935,11 @@ function getDownloadUrl() {
2892728935
return [`https://steamcdn-a.akamaihd.net/client/installer/${archiveName}`, archiveName];
2892828936
}
2892928937
function getTempDirectory() {
28930-
const tempDirectory = process.env['RUNNER_TEMP'] || '';
28931-
return tempDirectory;
28938+
return process.env['RUNNER_TEMP'] || '';
2893228939
}
2893328940
async function getVersion(tool) {
2893428941
let output = '';
28942+
core.info(`[command] ${tool} +quit`);
2893528943
await exec.exec(tool, [`+quit`], {
2893628944
listeners: {
2893728945
stdout: (data) => {
@@ -29096,6 +29104,14 @@ module.exports = require("net");
2909629104

2909729105
/***/ }),
2909829106

29107+
/***/ 6005:
29108+
/***/ ((module) => {
29109+
29110+
"use strict";
29111+
module.exports = require("node:crypto");
29112+
29113+
/***/ }),
29114+
2909929115
/***/ 5673:
2910029116
/***/ ((module) => {
2910129117

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-steamcmd",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "A GitHub Action to setup the steamcmd command alias.",
55
"author": "RageAgainstThePixel",
66
"repository": {
@@ -34,4 +34,4 @@
3434
"bundle": "ncc build src/index.ts -o dist --source-map --license licenses.txt",
3535
"clean": "npm install && shx rm -rf dist/ out/ node_modules/ && npm ci"
3636
}
37-
}
37+
}

src/setup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function findOrDownload(): Promise<[string, string]> {
4444
core.debug(`Attempting to download ${steamcmd} from ${url} to ${archiveDownloadPath}`);
4545
const archivePath = await tc.downloadTool(url, archiveDownloadPath);
4646
core.debug(`Successfully downloaded ${steamcmd} to ${archivePath}`);
47-
core.debug(`Extracting ${steamcmd} from ${archivePath}`);
47+
core.debug(`Extracting ${steamcmd} from ${archivePath}...`);
4848
let downloadDirectory = path.join(getTempDirectory(), steamcmd);
4949
if (IS_WINDOWS) {
5050
downloadDirectory = await tc.extractZip(archivePath, downloadDirectory);
@@ -95,12 +95,12 @@ function getDownloadUrl(): [string, string] {
9595
}
9696

9797
function getTempDirectory(): string {
98-
const tempDirectory = process.env['RUNNER_TEMP'] || ''
99-
return tempDirectory
98+
return process.env['RUNNER_TEMP'] || '';
10099
}
101100

102101
async function getVersion(tool: string): Promise<string> {
103102
let output = '';
103+
core.info(`[command] ${tool} +quit`);
104104
await exec.exec(tool, [`+quit`], {
105105
listeners: {
106106
stdout: (data) => {

0 commit comments

Comments
 (0)