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
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
# --- NPM: security only ----
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 0
groups:
npm-security:
applies-to: security-updates
patterns: [ "*" ]
labels: [ "security", "testing" ]
cooldown:
default-days: 7

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns: ["*"]
cooldown:
default-days: 7
66 changes: 45 additions & 21 deletions .github/workflows/test-and-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test
name: Build and Tag
on:
pull_request:
paths-ignore:
Expand All @@ -23,12 +23,8 @@ on:
dry_run:
description: 'If true, only calculate the new version and exit successfully.'
required: false
type: boolean
default: false

permissions:
contents: write

env:
bump: ${{ github.event_name == 'pull_request' && 'none' || github.event_name == 'workflow_dispatch' && github.event.inputs.bump || 'patch' }}
prerelease_version: ${{ github.event_name == 'pull_request' && format('pr{0}', github.event.number) || '' }}
Expand All @@ -38,29 +34,56 @@ jobs:
build:
runs-on: ubuntu-latest
container: node:24
permissions:
contents: write
checks: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@12cd2235efa0937479335606d7c3ac9f6c0973b1 # v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
fetch-depth: 0

- name: npm install
run: npm install

- name: npm run build
run: npm run build

- name: npm run test
run: npm run test || echo "Tests not yet implemented"
token: ${{ secrets.ACCESS_TOKEN_GITHUB }}
persist-credentials: true

- name: Configure Git
run: |
git config --global user.email ${GITHUB_ACTOR}@users.noreply.github.com
git config --global user.name "github-actions[bot]"
git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Setup pnpm and Node.js
uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2.0.2

- name: pnpm install
run: pnpm install

- name: pnpm run build
run: pnpm run build

- name: pnpm run test
run: pnpm exec node --test --test-reporter=spec --test-reporter=junit --test-reporter-destination=stdout --test-reporter-destination=test-results.xml src/test.js

- name: Publish Test Report
uses: mikepenz/action-junit-report@d9f48fc87bc235f7e214acf696ca5abc0a986f16 # v6.4.2
if: ${{ !cancelled() }}
with:
report_paths: 'test-results.xml'
detailed_summary: true
include_passed: true
group_suite: true
resolve_ignore_classname: true
check_title_template: '{{TEST_NAME}}'

- name: Remove Test Report
if: always()
run: rm -f test-results.xml

- name: Commit and Push
id: commit
if: github.event_name == 'pull_request'
run: |
git config --global user.email ${{ github.actor }}@users.noreply.github.com
git config --global user.name "github-actions[bot]"
git config --global --add safe.directory /__w/github-action-container-job/github-action-container-job

if [ -z "$(git status --porcelain)" ]; then
echo "changed=0">> $GITHUB_OUTPUT
echo "No changes"
Expand All @@ -70,13 +93,14 @@ jobs:
echo "changed=1">> $GITHUB_OUTPUT
git add -A
git commit -m "Build Release"
git push || echo "Push skipped (no permission or already up to date)"
git push

- name: Generate Semantic Version
uses: enosix/github-action-generate-semver@4ab2e5251fb8c5b9b06eb65b22c0e25daba76311 # v4.0.1
uses: enosix/github-action-generate-semver@0db52174578015a9471b9342427b97dc4e031cf2 # v5.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
bump: ${{ env.bump }}
prerelease_version: ${{ env.prerelease_version }}
dry_run: ${{ env.dry_run }}
create_release: ${{ github.event_name == 'push' }}
detect_bump: ${{ github.event_name == 'push' }}
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ inputs:
description: 'Preview payload and skip Azure calls'
required: false
default: 'false'
pull-logs:
description: 'Whether to pull logs from the job execution (true/false)'
required: false
default: 'false'
log-analytics-workspace-id:
description: 'Log Analytics Workspace ID for retrieving container logs'
required: false
Expand All @@ -78,6 +82,7 @@ outputs:
runs:
using: 'node24'
main: 'dist/index.js'
post: 'dist/post.js/index.js'
branding:
icon: 'play'
color: 'blue'
58 changes: 35 additions & 23 deletions dist/935.index.js → dist/360.index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const id = 935;
export const ids = [935];
export const id = 360;
export const ids = [360];
export const modules = {

/***/ 36935:
/***/ 6360:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

// ESM COMPAT FLAG
Expand Down Expand Up @@ -33,7 +33,7 @@ var promises_ = __webpack_require__(51455);
var external_node_os_ = __webpack_require__(48161);
// EXTERNAL MODULE: external "node:fs"
var external_node_fs_ = __webpack_require__(73024);
;// CONCATENATED MODULE: ./node_modules/is-docker/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/index.js


let isDockerCached;
Expand Down Expand Up @@ -64,7 +64,7 @@ function isDocker() {
return isDockerCached;
}

;// CONCATENATED MODULE: ./node_modules/is-inside-container/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.js



Expand All @@ -89,7 +89,7 @@ function isInsideContainer() {
return cachedResult;
}

;// CONCATENATED MODULE: ./node_modules/is-wsl/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/is-wsl@3.1.1/node_modules/is-wsl/index.js



Expand All @@ -109,16 +109,25 @@ const isWsl = () => {
}

try {
return external_node_fs_.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft')
? !isInsideContainer() : false;
} catch {
return false;
if (external_node_fs_.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft')) {
return !isInsideContainer();
}
} catch {}

// Fallback for custom kernels: check WSL-specific paths.
if (
external_node_fs_.existsSync('/proc/sys/fs/binfmt_misc/WSLInterop')
|| external_node_fs_.existsSync('/run/WSL')
) {
return !isInsideContainer();
}

return false;
};

/* harmony default export */ const is_wsl = (external_node_process_.env.__IS_WSL_TEST__ ? isWsl : isWsl());

;// CONCATENATED MODULE: ./node_modules/wsl-utils/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/wsl-utils@0.1.0/node_modules/wsl-utils/index.js



Expand Down Expand Up @@ -177,7 +186,7 @@ const powerShellPath = async () => {



;// CONCATENATED MODULE: ./node_modules/define-lazy-prop/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/define-lazy-prop@3.0.0/node_modules/define-lazy-prop/index.js
function defineLazyProperty(object, propertyName, valueGetter) {
const define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true});

Expand All @@ -197,7 +206,7 @@ function defineLazyProperty(object, propertyName, valueGetter) {
return object;
}

;// CONCATENATED MODULE: ./node_modules/default-browser-id/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/default-browser-id@5.0.1/node_modules/default-browser-id/index.js



Expand All @@ -224,7 +233,7 @@ async function defaultBrowserId() {
return browserId;
}

;// CONCATENATED MODULE: ./node_modules/run-applescript/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/run-applescript@7.1.0/node_modules/run-applescript/index.js



Expand Down Expand Up @@ -263,14 +272,14 @@ function runAppleScriptSync(script, {humanReadableOutput = true} = {}) {
return stdout.trim();
}

;// CONCATENATED MODULE: ./node_modules/bundle-name/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/bundle-name@4.1.0/node_modules/bundle-name/index.js


async function bundleName(bundleId) {
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
}

;// CONCATENATED MODULE: ./node_modules/default-browser/windows.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/default-browser@5.5.0/node_modules/default-browser/windows.js



Expand Down Expand Up @@ -318,15 +327,18 @@ async function defaultBrowser(_execFileAsync = windows_execFileAsync) {

const {id} = match.groups;

const browser = windowsBrowserProgIds[id];
if (!browser) {
throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
}
// Windows can append a hash suffix to ProgIds using a dot or hyphen
// (e.g., `ChromeHTML.ABC123`, `FirefoxURL-6F193CCC56814779`).
// Try exact match first, then try without the suffix.
const dotIndex = id.lastIndexOf('.');
const hyphenIndex = id.lastIndexOf('-');
const baseIdByDot = dotIndex === -1 ? undefined : id.slice(0, dotIndex);
const baseIdByHyphen = hyphenIndex === -1 ? undefined : id.slice(0, hyphenIndex);

return browser;
return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? {name: id, id};
}

;// CONCATENATED MODULE: ./node_modules/default-browser/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/default-browser@5.5.0/node_modules/default-browser/index.js



Expand Down Expand Up @@ -362,7 +374,7 @@ async function default_browser_defaultBrowser() {
throw new Error('Only macOS, Linux, and Windows are supported');
}

;// CONCATENATED MODULE: ./node_modules/open/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/open@10.2.0/node_modules/open/index.js



Expand Down
Loading