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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
test:
strategy:
matrix:
runner: [ubuntu-slim, ubuntu-latest]
runner: [ubuntu-slim, ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
Expand All @@ -37,5 +37,5 @@ jobs:
- uses: ./
with:
ssh-private-key: ${{ secrets.CI_DEPLOY_KEY_PRIVATE_KEY }}
fetch-github-host-keys: ${{ matrix.runner == 'ubuntu-slim' }}
- run: git clone git@github.com:tadodotcom/ssh-agent.git /tmp/ssh-agent-clone
fetch-github-host-keys: ${{ matrix.runner == 'ubuntu-slim' || matrix.runner == 'windows-latest' }}
- run: git clone git@github.com:tadodotcom/ssh-agent.git ssh-agent-clone
11 changes: 7 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3697,10 +3697,13 @@ try {
if (fetchGithubHostKeys) {
console.log("Fetching GitHub host keys");
try {
const metaJson = child_process.execSync(
"curl --silent https://api.github.com/meta",
{ encoding: "utf8" },
);
// Use curl which is available on all GitHub Actions runners (Linux, macOS, Windows)
const curlCmd =
process.platform === "win32"
? "curl.exe --silent https://api.github.com/meta"
: "curl --silent https://api.github.com/meta";

const metaJson = child_process.execSync(curlCmd, { encoding: "utf8" });

const meta = JSON.parse(metaJson);
const knownHostsFile = `${homeSsh}/known_hosts`;
Expand Down
11 changes: 7 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ try {
if (fetchGithubHostKeys) {
console.log("Fetching GitHub host keys");
try {
const metaJson = child_process.execSync(
"curl --silent https://api.github.com/meta",
{ encoding: "utf8" },
);
// Use curl which is available on all GitHub Actions runners (Linux, macOS, Windows)
const curlCmd =
process.platform === "win32"
? "curl.exe --silent https://api.github.com/meta"
: "curl --silent https://api.github.com/meta";

const metaJson = child_process.execSync(curlCmd, { encoding: "utf8" });

const meta = JSON.parse(metaJson);
const knownHostsFile = `${homeSsh}/known_hosts`;
Expand Down