4 Commits

Author SHA1 Message Date
Matthias Pigulla 25fcd78aa3 Update GHA actions to current versions (#251)
Automated batch commit by webfactory tooling
2026-06-18 11:29:51 +02:00
James McGonegal e838748343 use node24 (#243)
Node v20 is going to be EOL in April 2026 --
https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Resolves #242
2026-03-11 16:15:28 +01:00
Jano Paetzold a6f90b1f12 Release v0.9.1 2025-03-17 15:05:58 +01:00
Jano Paetzold 72c0bfd31a Improve documentation on why we use os.userInfo()
(use correct syscall name)

Co-authored-by: Matthias Pigulla <mp@webfactory.de>
2025-01-08 19:00:56 +01:00
4 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ jobs:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup key
uses: ./
with:
@@ -28,7 +28,7 @@ jobs:
container:
image: ubuntu:latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: apt update && apt install -y openssh-client git
- name: Setup key
uses: ./
+2
View File
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## v0.9.1 [2024-03-17]
### Fixed
* Fix path used to execute ssh-agent in cleanup.js to respect custom paths set by input (#235)
+1 -1
View File
@@ -20,7 +20,7 @@ inputs:
description: 'git command'
required: false
runs:
using: 'node20'
using: 'node24'
main: 'dist/index.js'
post: 'dist/cleanup.js'
post-if: 'always()'
+3 -2
View File
@@ -2,8 +2,9 @@ const os = require('os');
const core = require('@actions/core');
const defaults = (process.env['OS'] != 'Windows_NT') ? {
// Use getent() system call, since this is what ssh does; makes a difference in Docker-based
// Action runs, where $HOME is different from the pwent
// We use os.userInfo() rather than os.homedir(), since it uses the getpwuid() system call to get the user's home directory (see https://nodejs.org/api/os.html#osuserinfooptions).
// This mimics the way openssh derives the home directory for locating config files (see https://github.com/openssh/openssh-portable/blob/826483d51a9fee60703298bbf839d9ce37943474/ssh.c#L710);
// Makes a difference in Docker-based Action runs, when $HOME is different from what getpwuid() returns (which is based on the entry in /etc/passwd)
homePath: os.userInfo().homedir,
sshAgentCmdDefault: 'ssh-agent',
sshAddCmdDefault: 'ssh-add',