Compare commits
48 commits
debug-wind
...
forgejo
Author | SHA1 | Date | |
---|---|---|---|
e296b8a627 | |||
|
dc588b651f | ||
|
204eb35a4e | ||
|
9f6f312a31 | ||
|
2e59dd7d06 | ||
|
fd34b8dee2 | ||
|
d4b9b8ff72 | ||
|
ea17a056b9 | ||
|
9fbc246995 | ||
|
6f828ccb51 | ||
|
209e2d72ff | ||
|
18ff7066d3 | ||
|
2996779c08 | ||
|
4512be8010 | ||
|
836c84ec59 | ||
|
8a9e20a586 | ||
|
0a7dc1c09f | ||
|
b19b28d091 | ||
|
2c78a1c5d1 | ||
|
df2f741a87 | ||
|
fbef2c7bd0 | ||
|
28cb4d8505 | ||
|
ea4c593dc9 | ||
|
26e485b72d | ||
|
5a6c248f3f | ||
|
53715f806b | ||
|
19a5c6646f | ||
|
fc49353b67 | ||
|
bc6614de94 | ||
|
dc622c59e4 | ||
|
97348a2ec6 | ||
|
bbd5513ed5 | ||
|
a652a400f2 | ||
|
1711bb1971 | ||
|
5f066a372e | ||
|
a45226bfaf | ||
|
81d965f2bd | ||
|
515d164e78 | ||
|
8569bedfe0 | ||
|
98f76b1158 | ||
|
cb8b21017a | ||
|
aed5400f20 | ||
|
4681241867 | ||
|
4b6f4eb000 | ||
|
795485730f | ||
|
598c7ea894 | ||
|
65d1ea3d90 | ||
|
5f95203cea |
11 changed files with 55061 additions and 602 deletions
82
.github/workflows/demo.yml
vendored
82
.github/workflows/demo.yml
vendored
|
@ -1,60 +1,46 @@
|
||||||
on: [push, pull_request]
|
on: [ push, pull_request ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
single_key_demo:
|
deployment_keys_demo:
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Setup key
|
- name: Setup key
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
ssh-private-key: |
|
ssh-private-key: |
|
||||||
${{ secrets.DEMO_KEY }}
|
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
||||||
${{ secrets.DEMO_KEY_2 }}
|
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
||||||
|
- run: |
|
||||||
multiple_keys_demo:
|
git clone https://github.com/mpdude/test-1.git test-1-http
|
||||||
strategy:
|
git clone git@github.com:mpdude/test-1.git test-1-git
|
||||||
matrix:
|
git clone ssh://git@github.com/mpdude/test-1.git test-1-git-ssh
|
||||||
os: [ubuntu-latest, macOS-latest]
|
git clone https://github.com/mpdude/test-2.git test-2-http
|
||||||
runs-on: ${{ matrix.os }}
|
git clone git@github.com:mpdude/test-2.git test-2-git
|
||||||
steps:
|
git clone ssh://git@github.com/mpdude/test-2.git test-2-git-ssh
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup key
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
ssh-private-key: ${{ secrets.DEMO_KEY }}
|
|
||||||
|
|
||||||
docker_demo:
|
docker_demo:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- run: apt update && apt install -y openssh-client
|
- run: apt update && apt install -y openssh-client git
|
||||||
- name: Setup key
|
- name: Setup key
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
ssh-private-key: |
|
ssh-private-key: |
|
||||||
${{ secrets.DEMO_KEY }}
|
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
||||||
${{ secrets.DEMO_KEY_2 }}
|
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
||||||
|
- run: |
|
||||||
|
git clone https://github.com/mpdude/test-1.git test-1-http
|
||||||
|
git clone git@github.com:mpdude/test-1.git test-1-git
|
||||||
|
git clone ssh://git@github.com/mpdude/test-1.git test-1-git-ssh
|
||||||
|
git clone https://github.com/mpdude/test-2.git test-2-http
|
||||||
|
git clone git@github.com:mpdude/test-2.git test-2-git
|
||||||
|
git clone ssh://git@github.com/mpdude/test-2.git test-2-git-ssh
|
||||||
|
|
||||||
deployment_keys_demo:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup key
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
ssh-private-key: |
|
|
||||||
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
|
||||||
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
|
||||||
- run: |
|
|
||||||
git clone https://github.com/mpdude/test-1.git test-1-http
|
|
||||||
git clone git@github.com:mpdude/test-1.git test-1-git
|
|
||||||
git clone ssh://git@github.com/mpdude/test-1.git test-1-git-ssh
|
|
||||||
git clone https://github.com/mpdude/test-2.git test-2-http
|
|
||||||
git clone git@github.com:mpdude/test-2.git test-2-git
|
|
||||||
git clone ssh://git@github.com/mpdude/test-2.git test-2-git-ssh
|
|
||||||
|
|
76
CHANGELOG.md
76
CHANGELOG.md
|
@ -7,6 +7,82 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## v0.7.0 [2022-10-19]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Add the `log-public-key` input that can be used to turn off logging key identities (#122)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fix path to `git` binary on Windows, assuming GitHub-hosted runners (#136, #137)
|
||||||
|
* Fix a nonsensical log message (#139)
|
||||||
|
|
||||||
|
## v0.6.0 [2022-10-19]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Update the version of Node used by the action from 12 to 16 (https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/).
|
||||||
|
|
||||||
|
## v0.5.4 [2021-11-21]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Update changed GitHub Host Keys (#102, #101)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Various documentation (README) improvements and additions
|
||||||
|
* Change logging to more precisely state that _public_ keys are being printed
|
||||||
|
|
||||||
|
## v0.5.3 [2021-06-11]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fixed cleanup phase to really terminate the ssh-agent (#80)
|
||||||
|
* Fix termination of ssh-agent also on workflow failure (#79)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Various documentation (README) improvements and additions
|
||||||
|
|
||||||
|
## v0.5.2 [2021-04-07]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Use case-insensitive regex matching when scanning key comments (#68, #70, #71)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Log when a key is _not_ used as a deploy key (#69)
|
||||||
|
|
||||||
|
## v0.5.1 [2021-03-10]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fix deployment key mapping on Windows virtual environment by using SSH binaries from the Git
|
||||||
|
suite, terminate ssh-agent upon actio termination on Windows as well (#63)
|
||||||
|
* Handle ENOENT exceptions with a graceful message
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Various documentation (README) improvements and additions
|
||||||
|
|
||||||
|
## v0.5.0 [2021-02-19]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Add support for GitHub Deployment Keys through key comments (#59). Fixes #30, closes #38.
|
||||||
|
* Support for container-based workflows and Windows (#17)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fix scripts/build.js to work on Windows (#38)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Various documentation (README) improvements and additions
|
||||||
|
|
||||||
## v0.4.1 [2020-10-07]
|
## v0.4.1 [2020-10-07]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
148
README.md
148
README.md
|
@ -1,10 +1,9 @@
|
||||||
# `ssh-agent` GitHub Action
|
# `ssh-agent` GitHub Action
|
||||||
|
|
||||||
This action
|
This action
|
||||||
* starts the `ssh-agent`,
|
* starts the `ssh-agent`,
|
||||||
* exports the `SSH_AUTH_SOCK` environment variable,
|
* exports the `SSH_AUTH_SOCK` environment variable, and
|
||||||
* loads one or several private SSH key into the agent and
|
* loads one or several private SSH key into the agent.
|
||||||
* configures `known_hosts` for GitHub.com.
|
|
||||||
|
|
||||||
It should work in all GitHub Actions virtual environments, including container-based workflows.
|
It should work in all GitHub Actions virtual environments, including container-based workflows.
|
||||||
|
|
||||||
|
@ -20,11 +19,14 @@ GitHub Actions only have access to the repository they run for. So, in order to
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
1. Create an SSH key with sufficient access privileges. For security reasons, don't use your personal SSH key but set up a dedicated one for use in GitHub Actions. See below for a few hints if you are unsure about this step.
|
1. Generate a new SSH key with sufficient access privileges. For security reasons, don't use your personal SSH key but set up a dedicated one for use in GitHub Actions. See below for a few hints if you are unsure about this step.
|
||||||
2. Make sure you don't have a passphrase set on the private key.
|
2. Make sure you don't have a passphrase set on the private key.
|
||||||
3. In your repository, go to the *Settings > Secrets* menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`. Put the contents of the *private* SSH key file into the contents field. <br>
|
3. Add the public SSH key to the private repository you are pulling from during the Github Action as a 'Deploy Key'.
|
||||||
This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`.
|
4. Add the private SSH key to the repository triggering the Github Action:
|
||||||
4. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v2` line.
|
* In your repository, go to the *Settings > Secrets* menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`.
|
||||||
|
* Put the contents of the *private* SSH key file into the contents field. <br>
|
||||||
|
* This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`.
|
||||||
|
5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v4` line.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# .github/workflows/my-workflow.yml
|
# .github/workflows/my-workflow.yml
|
||||||
|
@ -32,13 +34,12 @@ jobs:
|
||||||
my_job:
|
my_job:
|
||||||
...
|
...
|
||||||
steps:
|
steps:
|
||||||
- actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
# Make sure the @v0.5.0 matches the current version of the
|
# Make sure the @v0.9.0 matches the current version of the action
|
||||||
# action
|
- uses: webfactory/ssh-agent@v0.9.0
|
||||||
- uses: webfactory/ssh-agent@v0.5.0
|
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
- ... other steps
|
# ... other steps
|
||||||
```
|
```
|
||||||
5. If, for some reason, you need to change the location of the SSH agent socket, you can use the `ssh-auth-sock` input to provide a path.
|
5. If, for some reason, you need to change the location of the SSH agent socket, you can use the `ssh-auth-sock` input to provide a path.
|
||||||
|
|
||||||
|
@ -49,8 +50,8 @@ There are cases where you might need to use multiple keys. For example, "[deploy
|
||||||
You can set up different keys as different secrets and pass them all to the action like so:
|
You can set up different keys as different secrets and pass them all to the action like so:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# ... contens as before
|
# ... contents as before
|
||||||
- uses: webfactory/ssh-agent@v0.5.0
|
- uses: webfactory/ssh-agent@v0.9.0
|
||||||
with:
|
with:
|
||||||
ssh-private-key: |
|
ssh-private-key: |
|
||||||
${{ secrets.FIRST_KEY }}
|
${{ secrets.FIRST_KEY }}
|
||||||
|
@ -68,12 +69,24 @@ When using **Github deploy keys**, GitHub servers will accept the _first_ known
|
||||||
|
|
||||||
To support picking the right key in this use case, this action scans _key comments_ and will set up extra Git and SSH configuration to make things work.
|
To support picking the right key in this use case, this action scans _key comments_ and will set up extra Git and SSH configuration to make things work.
|
||||||
|
|
||||||
1. When creating the deploy key for a repository like `git@github.com:owner/repo.git` or `https://github.com/owner/repo`, put that URL into the key comment.
|
1. When creating the deploy key for a repository like `git@github.com:owner/repo.git` or `https://github.com/owner/repo`, put that URL into the key comment. (Hint: Try `ssh-keygen ... -C "git@github.com:owner/repo.git"`.)
|
||||||
2. After keys have been added to the agent, this action will scan the key comments.
|
2. After keys have been added to the agent, this action will scan the key comments.
|
||||||
3. For key comments containing such URLs, a Git config setting is written that uses [`url.<base>.insteadof`](https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf). It will redirect `git` requests to URLs starting with either `https://github.com/owner/repo` or `git@github.com:owner/repo` to a fake hostname/URL like `git@...some.hash...:owner/repo`.
|
3. For key comments containing such URLs, a Git config setting is written that uses [`url.<base>.insteadof`](https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf). It will redirect `git` requests to URLs starting with either `https://github.com/owner/repo` or `git@github.com:owner/repo` to a fake hostname/URL like `git@...some.hash...:owner/repo`.
|
||||||
4. An SSH configuration section is generated that applies to the fake hostname. It will map the SSH connection back to `github.com`, while at the same time pointing SSH to a file containing the appropriate key's public part. That will make SSH use the right key when connecting to GitHub.com.
|
4. An SSH configuration section is generated that applies to the fake hostname. It will map the SSH connection back to `github.com`, while at the same time pointing SSH to a file containing the appropriate key's public part. That will make SSH use the right key when connecting to GitHub.com.
|
||||||
|
|
||||||
|
## Action Inputs
|
||||||
|
|
||||||
|
The following inputs can be used to control the action's behavior:
|
||||||
|
|
||||||
|
* `ssh-private-key`: Required. Use this to provide the key(s) to load as GitHub Actions secrets.
|
||||||
|
* `ssh-auth-sock`: Can be used to control where the SSH agent socket will be placed. Ultimately affects the `$SSH_AUTH_SOCK` environment variable.
|
||||||
|
* `log-public-key`: Set this to `false` if you want to suppress logging of _public_ key information. To simplify debugging and since it contains public key information only, this is turned on by default.
|
||||||
|
* `ssh-agent-cmd`: Optional. Use this to specify a custom location for the `ssh-agent` binary.
|
||||||
|
* `ssh-add-cmd`: Optional. Use this to specify a custom location for the `ssh-add` binary.
|
||||||
|
* `git-cmd`: Optional. Use this to specify a custom location for the `git` binary.
|
||||||
|
|
||||||
## Exported variables
|
## Exported variables
|
||||||
|
|
||||||
The action exports the `SSH_AUTH_SOCK` and `SSH_AGENT_PID` environment variables through the Github Actions core module.
|
The action exports the `SSH_AUTH_SOCK` and `SSH_AGENT_PID` environment variables through the Github Actions core module.
|
||||||
The `$SSH_AUTH_SOCK` is used by several applications like git or rsync to connect to the SSH authentication agent.
|
The `$SSH_AUTH_SOCK` is used by several applications like git or rsync to connect to the SSH authentication agent.
|
||||||
The `$SSH_AGENT_PID` contains the process id of the agent. This is used to kill the agent in post job action.
|
The `$SSH_AGENT_PID` contains the process id of the agent. This is used to kill the agent in post job action.
|
||||||
|
@ -90,6 +103,101 @@ If the private key is not in the `PEM` format, you will see an `Error loading ke
|
||||||
|
|
||||||
Use `ssh-keygen -p -f path/to/your/key -m pem` to convert your key file to `PEM`, but be sure to make a backup of the file first 😉.
|
Use `ssh-keygen -p -f path/to/your/key -m pem` to convert your key file to `PEM`, but be sure to make a backup of the file first 😉.
|
||||||
|
|
||||||
|
## Additional Information for Particular Tools or Platforms
|
||||||
|
|
||||||
|
If you know that your favorite tool or platform of choice requires extra tweaks or has some caveats when running with SSH, feel free to open a PR to amend this section here.
|
||||||
|
|
||||||
|
### Container-based Workflows
|
||||||
|
|
||||||
|
If you are using this action on container-based workflows, make sure the container has the necessary SSH binaries or package(s) installed.
|
||||||
|
|
||||||
|
### Building Docker Images and/or Using the `docker/build-push-action` Action
|
||||||
|
|
||||||
|
When you are building Docker images with `docker build` or `docker compose build` and need to provide the SSH keys to the build, don't forget to pass `--ssh default=${{ env.SSH_AUTH_SOCK }}` on the command line to pass the SSH agent socket through. See the [Docker documentation](https://docs.docker.com/engine/reference/commandline/buildx_build/#ssh) for more information on this option.
|
||||||
|
|
||||||
|
If you are using the `docker/build-push-action`, you can do so by adding the following config.
|
||||||
|
|
||||||
|
```yml
|
||||||
|
- name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
ssh: |
|
||||||
|
default=${{ env.SSH_AUTH_SOCK }}
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure not to miss the next section, though.
|
||||||
|
|
||||||
|
### Using Multiple Deploy Keys Inside Docker Builds
|
||||||
|
|
||||||
|
When you pass the SSH agent socket to the Docker build environment _and_ want to use multiple GitHub deploy keys, you need to copy the Git and SSH configuration files to the build environment as well. This is necessary _in addition to_ forwarding the SSH agent socket into the build process. The config files are required so that Git can pick the right one from your deployment keys.
|
||||||
|
|
||||||
|
This requires an additional step in the workflow file **after** the `ssh-agent` step and **before** the Docker build step. You also need two additional lines in the `Dockerfile` to actually copy the configs.
|
||||||
|
|
||||||
|
The following example will:
|
||||||
|
* collect the necessary Git and SSH configuration files in a directory that must be part of the Docker build context so that...
|
||||||
|
* ... the files can be copied into the Docker image (or an intermediate build stage).
|
||||||
|
|
||||||
|
Workflow:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
- name: ssh-agent setup
|
||||||
|
...
|
||||||
|
|
||||||
|
- name: Collect Git and SSH config files in a directory that is part of the Docker build context
|
||||||
|
run: |
|
||||||
|
mkdir root-config
|
||||||
|
cp -r ~/.gitconfig ~/.ssh root-config/
|
||||||
|
|
||||||
|
- name: Docker build
|
||||||
|
# build-push-action | docker [compose] build | etc.
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
Dockerfile:
|
||||||
|
|
||||||
|
```Dockerfile
|
||||||
|
# Copy the two files in place and fix different path/locations inside the Docker image
|
||||||
|
COPY root-config /root/
|
||||||
|
RUN sed 's|/home/runner|/root|g' -i.bak /root/.ssh/config
|
||||||
|
```
|
||||||
|
|
||||||
|
Keep in mind that the resulting Docker image now might contain these customized Git and SSH configuration files! Your private SSH keys are never written to files anywhere, just loaded into the SSH agent and forwarded into the container. The config files might, however, give away details about your build or development process and contain the names and URLs of your (private) repositories. You might want to use a multi-staged build to make sure these files do not end up in the final image.
|
||||||
|
|
||||||
|
If you still get the error message: `fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.`, you most likely forgot one of the steps above.
|
||||||
|
|
||||||
|
### Cargo's (Rust) Private Dependencies on Windows
|
||||||
|
|
||||||
|
If you are using private repositories in your dependencies like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
stuff = { git = "ssh://git@github.com/myorg/stuff.git", branch = "main" }
|
||||||
|
```
|
||||||
|
|
||||||
|
... you will need to change a configuration in the workflow for Windows machines in order to make cargo able to clone private repositories.
|
||||||
|
|
||||||
|
There are 2 ways you can achieve this:
|
||||||
|
|
||||||
|
1. Add this step once in your job **before** any cargo command:
|
||||||
|
|
||||||
|
```
|
||||||
|
- name: Update cargo config to use Git CLI
|
||||||
|
run: Set-Content -Path $env:USERPROFILE\.cargo\config.toml "[net]`ngit-fetch-with-cli = true"
|
||||||
|
```
|
||||||
|
|
||||||
|
This will configure Cargo to use the Git CLI as explained in the [Cargo's documentation](https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli).
|
||||||
|
|
||||||
|
2. Alternatively you can set it to the environment variables for the entire workflow:
|
||||||
|
|
||||||
|
```
|
||||||
|
env:
|
||||||
|
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||||||
|
```
|
||||||
|
|
||||||
|
### Using Deploy Keys with Swift Package Manager
|
||||||
|
|
||||||
|
`xcodebuild` by default uses Xcode's built-in Git tooling. If you want to use GitHub Deploy Keys as supported by this action, however, that version of Git will lack the necessary URL remapping. In this case, pass `-scmProvider system` to the `xcodebuild` command, as mentioned in [Apple's documentation](https://developer.apple.com/documentation/swift_packages/building_swift_packages_or_apps_that_use_them_in_continuous_integration_workflows#3680255).
|
||||||
|
|
||||||
## What this Action *cannot* do for you
|
## What this Action *cannot* do for you
|
||||||
|
|
||||||
The following items are not issues, but beyond what this Action is supposed to do.
|
The following items are not issues, but beyond what this Action is supposed to do.
|
||||||
|
@ -100,7 +208,7 @@ When using `ssh` to connect from the GitHub Action worker node to another machin
|
||||||
|
|
||||||
### Provide the SSH Key as a File
|
### Provide the SSH Key as a File
|
||||||
|
|
||||||
This Action is designed to pass the SSH key directly into `ssh-agent`; that is, the key is available in memory on the GitHub Action worker node, but never written to disk. As a consequence, you _cannot_ pass the key as a build argument or a mounted file into Docker containers that you build or run on the worker node. You _can_, however, mount the `ssh-agent` Unix socket into a Docker container that you _run_, set up the `SSH_AUTH_SOCK` env var and then use SSH from within the container (see #11).
|
This Action is designed to pass the SSH key directly into `ssh-agent`; that is, the key is available in memory on the GitHub Action worker node, but never written to disk. As a consequence, you _cannot_ pass the key as a build argument or a mounted file into Docker containers that you build or run on the worker node. You _can_, however, mount the `ssh-agent` Unix socket into a Docker container that you _run_, set up the `SSH_AUTH_SOCK` env var and then use SSH from within the container (see https://github.com/webfactory/ssh-agent/issues/11).
|
||||||
|
|
||||||
### Run `ssh-keyscan` to Add Host Keys for Additional Hosts
|
### Run `ssh-keyscan` to Add Host Keys for Additional Hosts
|
||||||
|
|
||||||
|
@ -111,7 +219,7 @@ As a side note, using `ssh-keyscan` without proper key verification is susceptib
|
||||||
## Creating SSH Keys
|
## Creating SSH Keys
|
||||||
|
|
||||||
In order to create a new SSH key, run `ssh-keygen -t ed25519 -a 100 -f path/to/keyfile`, as suggested in [this blog post](https://stribika.github.io/2015/01/04/secure-secure-shell.html).
|
In order to create a new SSH key, run `ssh-keygen -t ed25519 -a 100 -f path/to/keyfile`, as suggested in [this blog post](https://stribika.github.io/2015/01/04/secure-secure-shell.html).
|
||||||
If you need to work with some older server software and need RSA keys, tr `ssh-keygen -t rsa -b 4096 -o -f path/to/keyfile` instead.
|
If you need to work with some older server software and need RSA keys, try `ssh-keygen -t rsa -b 4096 -o -f path/to/keyfile` instead.
|
||||||
|
|
||||||
Both commands will prompt you for a key passphrase and save the key in `path/to/keyfile`.
|
Both commands will prompt you for a key passphrase and save the key in `path/to/keyfile`.
|
||||||
In general, having a passphrase is a good thing, since it will keep the key encrypted on your disk. When using the key with this action, however, you need to make sure you don't
|
In general, having a passphrase is a good thing, since it will keep the key encrypted on your disk. When using the key with this action, however, you need to make sure you don't
|
||||||
|
@ -163,4 +271,4 @@ developer looking for new challenges, we'd like to hear from you!
|
||||||
- <https://www.webfactory.de>
|
- <https://www.webfactory.de>
|
||||||
- <https://twitter.com/webfactory>
|
- <https://twitter.com/webfactory>
|
||||||
|
|
||||||
Copyright 2019 – 2021 webfactory GmbH, Bonn. Code released under [the MIT license](LICENSE).
|
Copyright 2019 – 2023 webfactory GmbH, Bonn. Code released under [the MIT license](LICENSE).
|
||||||
|
|
30
action.yml
30
action.yml
|
@ -4,12 +4,40 @@ inputs:
|
||||||
ssh-private-key:
|
ssh-private-key:
|
||||||
description: 'Private SSH key to register in the SSH agent'
|
description: 'Private SSH key to register in the SSH agent'
|
||||||
required: true
|
required: true
|
||||||
|
instance-urls:
|
||||||
|
description: |-
|
||||||
|
URL(s) of the Forgejo instance to use. Due to limitations with Forgejo Actions inputs, this is specified as a string.
|
||||||
|
|
||||||
|
You can specify multiple instance URLs by putting each one on a separate line.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
secrets: |-
|
||||||
|
forgejo.org
|
||||||
|
codeberg.org
|
||||||
|
```
|
||||||
|
required: false
|
||||||
|
default: 'forgejo.org'
|
||||||
ssh-auth-sock:
|
ssh-auth-sock:
|
||||||
description: 'Where to place the SSH Agent auth socket'
|
description: 'Where to place the SSH Agent auth socket'
|
||||||
|
log-public-key:
|
||||||
|
description: 'Whether or not to log public key fingerprints'
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
ssh-agent-cmd:
|
||||||
|
description: 'ssh-agent command'
|
||||||
|
required: false
|
||||||
|
ssh-add-cmd:
|
||||||
|
description: 'ssh-add command'
|
||||||
|
required: false
|
||||||
|
git-cmd:
|
||||||
|
description: 'git command'
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node20'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
post: 'dist/cleanup.js'
|
post: 'dist/cleanup.js'
|
||||||
|
post-if: 'always()'
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: loader
|
icon: loader
|
||||||
color: 'yellow'
|
color: 'yellow'
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
const core = require('@actions/core')
|
const core = require('@actions/core');
|
||||||
const { execSync } = require('child_process')
|
const { execFileSync } = require('child_process');
|
||||||
|
const { sshAgentCmd } = require('./paths.js');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Kill the started SSH agent
|
// Kill the started SSH agent
|
||||||
console.log('Stopping SSH agent')
|
console.log('Stopping SSH agent');
|
||||||
execSync('kill ${SSH_AGENT_PID}', { stdio: 'inherit' })
|
execFileSync(sshAgentCmd, ['-k'], { stdio: 'inherit' });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error.message);
|
console.log(error.message);
|
||||||
console.log('Error stopping the SSH agent, proceeding anyway');
|
console.log('Error stopping the SSH agent, proceeding anyway');
|
||||||
|
|
27473
dist/cleanup.js
vendored
27473
dist/cleanup.js
vendored
File diff suppressed because one or more lines are too long
27650
dist/index.js
vendored
27650
dist/index.js
vendored
File diff suppressed because one or more lines are too long
115
index.js
115
index.js
|
@ -1,11 +1,21 @@
|
||||||
const core = require('@actions/core');
|
const core = require('@actions/core');
|
||||||
const child_process = require('child_process');
|
const child_process = require('child_process');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const os = require('os');
|
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
|
const { homePath, sshAgentCmdDefault, sshAddCmdDefault, gitCmdDefault } = require('./paths.js');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const privateKey = core.getInput('ssh-private-key');
|
const privateKey = core.getInput('ssh-private-key');
|
||||||
|
const instanceUrls = core.getInput('instance-urls', { required: true });
|
||||||
|
const logPublicKey = core.getBooleanInput('log-public-key', {default: true});
|
||||||
|
|
||||||
|
const sshAgentCmdInput = core.getInput('ssh-agent-cmd');
|
||||||
|
const sshAddCmdInput = core.getInput('ssh-add-cmd');
|
||||||
|
const gitCmdInput = core.getInput('git-cmd');
|
||||||
|
|
||||||
|
const sshAgentCmd = sshAgentCmdInput ? sshAgentCmdInput : sshAgentCmdDefault;
|
||||||
|
const sshAddCmd = sshAddCmdInput ? sshAddCmdInput : sshAddCmdDefault;
|
||||||
|
const gitCmd = gitCmdInput ? gitCmdInput : gitCmdDefault;
|
||||||
|
|
||||||
if (!privateKey) {
|
if (!privateKey) {
|
||||||
core.setFailed("The ssh-private-key argument is empty. Maybe the secret has not been configured, or you are using a wrong secret name in your workflow file.");
|
core.setFailed("The ssh-private-key argument is empty. Maybe the secret has not been configured, or you are using a wrong secret name in your workflow file.");
|
||||||
|
@ -13,79 +23,80 @@ try {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var home;
|
const homeSsh = homePath + '/.ssh';
|
||||||
|
|
||||||
if (process.env['OS'] == 'Windows_NT') {
|
|
||||||
console.log('Preparing ssh-agent service on Windows');
|
|
||||||
child_process.execSync('sc config ssh-agent start=demand', { stdio: 'inherit' });
|
|
||||||
|
|
||||||
home = os.homedir();
|
|
||||||
} else {
|
|
||||||
// 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
|
|
||||||
var { homedir: home } = os.userInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
const homeSsh = home + '/.ssh';
|
|
||||||
|
|
||||||
console.log(`Adding GitHub.com keys to ${homeSsh}/known_hosts`);
|
|
||||||
fs.mkdirSync(homeSsh, { recursive: true });
|
fs.mkdirSync(homeSsh, { recursive: true });
|
||||||
fs.appendFileSync(`${homeSsh}/known_hosts`, '\ngithub.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==\n');
|
|
||||||
fs.appendFileSync(`${homeSsh}/known_hosts`, '\ngithub.com ssh-dss AAAAB3NzaC1kc3MAAACBANGFW2P9xlGU3zWrymJgI/lKo//ZW2WfVtmbsUZJ5uyKArtlQOT2+WRhcg4979aFxgKdcsqAYW3/LS1T2km3jYW/vr4Uzn+dXWODVk5VlUiZ1HFOHf6s6ITcZvjvdbp6ZbpM+DuJT7Bw+h5Fx8Qt8I16oCZYmAPJRtu46o9C2zk1AAAAFQC4gdFGcSbp5Gr0Wd5Ay/jtcldMewAAAIATTgn4sY4Nem/FQE+XJlyUQptPWMem5fwOcWtSXiTKaaN0lkk2p2snz+EJvAGXGq9dTSWHyLJSM2W6ZdQDqWJ1k+cL8CARAqL+UMwF84CR0m3hj+wtVGD/J4G5kW2DBAf4/bqzP4469lT+dF2FRQ2L9JKXrCWcnhMtJUvua8dvnwAAAIB6C4nQfAA7x8oLta6tT+oCk2WQcydNsyugE8vLrHlogoWEicla6cWPk7oXSspbzUcfkjN3Qa6e74PhRkc7JdSdAlFzU3m7LMkXo1MHgkqNX8glxWNVqBSc0YRdbFdTkL0C6gtpklilhvuHQCdbgB3LBAikcRkDp+FCVkUgPC/7Rw==\n');
|
|
||||||
|
|
||||||
console.log("Starting ssh-agent");
|
console.log("Starting ssh-agent");
|
||||||
|
|
||||||
const authSock = core.getInput('ssh-auth-sock');
|
const authSock = core.getInput('ssh-auth-sock');
|
||||||
let sshAgentOutput = ''
|
const sshAgentArgs = (authSock && authSock.length > 0) ? ['-a', authSock] : [];
|
||||||
if (authSock && authSock.length > 0) {
|
|
||||||
sshAgentOutput = child_process.execFileSync('ssh-agent', ['-a', authSock]);
|
|
||||||
} else {
|
|
||||||
sshAgentOutput = child_process.execFileSync('ssh-agent')
|
|
||||||
}
|
|
||||||
|
|
||||||
// Extract auth socket path and agent pid and set them as job variables
|
// Extract auth socket path and agent pid and set them as job variables
|
||||||
const lines = sshAgentOutput.toString().split("\n")
|
child_process.execFileSync(sshAgentCmd, sshAgentArgs).toString().split("\n").forEach(function(line) {
|
||||||
for (const lineNumber in lines) {
|
const matches = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line);
|
||||||
const matches = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(lines[lineNumber])
|
|
||||||
if (matches && matches.length > 0) {
|
|
||||||
core.exportVariable(matches[1], matches[2])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("Adding private key to agent");
|
if (matches && matches.length > 0) {
|
||||||
privateKey.split(/(?=-----BEGIN)/).forEach(function(key) {
|
// This will also set process.env accordingly, so changes take effect for this script
|
||||||
child_process.execSync('ssh-add -', { input: key.trim() + "\n" });
|
core.exportVariable(matches[1], matches[2])
|
||||||
|
console.log(`${matches[1]}=${matches[2]}`);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Keys added:");
|
console.log("Adding private key(s) to agent");
|
||||||
child_process.execSync('ssh-add -l', { stdio: 'inherit' });
|
|
||||||
|
|
||||||
child_process.execFileSync('ssh-add', ['-L']).toString().split(/\r?\n/).forEach(function(key) {
|
privateKey.split(/(?=-----BEGIN)/).forEach(function(key) {
|
||||||
let parts = key.match(/\bgithub.com[:/](.*)(?:\.git)?\b/);
|
child_process.execFileSync(sshAddCmd, ['-'], { input: key.trim() + "\n" });
|
||||||
|
});
|
||||||
|
|
||||||
if (parts == null) {
|
console.log("Key(s) added:");
|
||||||
|
|
||||||
|
child_process.execFileSync(sshAddCmd, ['-l'], { stdio: 'inherit' });
|
||||||
|
|
||||||
|
console.log('Configuring deployment key(s)');
|
||||||
|
|
||||||
|
const instanceUrlsArray = instanceUrls.split(/\r?\n/);
|
||||||
|
|
||||||
|
instanceUrlsArray.forEach(instanceUrl => {
|
||||||
|
const urlPattern = new RegExp(`\\b${instanceUrl.replace(/\./g, '\\.')}[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+)`, 'i');
|
||||||
|
|
||||||
|
child_process.execFileSync(sshAddCmd, ['-L']).toString().trim().split(/\r?\n/).forEach(function(key) {
|
||||||
|
const parts = key.match(urlPattern);
|
||||||
|
|
||||||
|
if (!parts) {
|
||||||
|
if (logPublicKey) {
|
||||||
|
console.log(`Comment for (public) key '${key}' does not match ${instanceUrl} URL pattern. Not treating it as a deploy key for ${instanceUrl}.`);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let ownerAndRepo = parts[1];
|
const sha256 = crypto.createHash('sha256').update(key).digest('hex');
|
||||||
let sha256 = crypto.createHash('sha256').update(key).digest('hex');
|
const ownerAndRepo = parts[1].replace(/\.git$/, '');
|
||||||
|
|
||||||
fs.writeFileSync(`${homeSsh}/${sha256}`, key + "\n", { mode: '600' });
|
fs.writeFileSync(`${homeSsh}/key-${sha256}`, key + "\n", { mode: '600' });
|
||||||
|
|
||||||
child_process.execSync(`git config --global --replace-all url."git@${sha256}:${ownerAndRepo}".insteadOf "https://github.com/${ownerAndRepo}"`);
|
const keyHostname = `key-${sha256}.${instanceUrl}`;
|
||||||
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "git@github.com:${ownerAndRepo}"`);
|
|
||||||
child_process.execSync(`git config --global --add url."git@${sha256}:${ownerAndRepo}".insteadOf "ssh://git@github.com/${ownerAndRepo}"`);
|
|
||||||
|
|
||||||
let sshConfig = `\nHost ${sha256}\n`
|
child_process.execSync(`${gitCmd} config --global --replace-all url."git@${keyHostname}:${ownerAndRepo}".insteadOf "https://${instanceUrl}/${ownerAndRepo}"`);
|
||||||
+ ` HostName github.com\n`
|
child_process.execSync(`${gitCmd} config --global --add url."git@${keyHostname}:${ownerAndRepo}".insteadOf "git@${instanceUrl}:${ownerAndRepo}"`);
|
||||||
+ ` User git\n`
|
child_process.execSync(`${gitCmd} config --global --add url."git@${keyHostname}:${ownerAndRepo}".insteadOf "ssh://git@${instanceUrl}/${ownerAndRepo}"`);
|
||||||
+ ` IdentityFile ${homeSsh}/${sha256}\n`
|
|
||||||
+ ` IdentitiesOnly yes\n`;
|
const sshConfig = `\nHost ${keyHostname}\n`
|
||||||
|
+ ` HostName ${instanceUrl}\n`
|
||||||
|
+ ` IdentityFile ${homeSsh}/key-${sha256}\n`
|
||||||
|
+ ` IdentitiesOnly yes\n`;
|
||||||
|
|
||||||
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
||||||
|
|
||||||
console.log(`Added deploy-key mapping: Use key "${key}" for GitHub repository ${ownerAndRepo}`);
|
console.log(`Added deploy-key mapping: Use identity '${homeSsh}/key-${sha256}' for ${instanceUrl} repository ${ownerAndRepo}`);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
|
if (error.code == 'ENOENT') {
|
||||||
|
console.log(`The '${error.path}' executable could not be found. Please make sure it is on your PATH and/or the necessary packages are installed.`);
|
||||||
|
console.log(`PATH is set to: ${process.env.PATH}`);
|
||||||
|
}
|
||||||
|
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"name": "webfactory-action-ssh-agent",
|
"name": "webfactory-action-ssh-agent",
|
||||||
"repository": "git@github.com:webfactory/ssh-agent.git",
|
"repository": "git@www.coastalcommits.com:actions/ssh-agent.git",
|
||||||
"description": "GitHub Action to set up ssh-agent with a private SSH key",
|
"description": "GitHub Action to set up ssh-agent with a private SSH key",
|
||||||
"version": "0.1.0",
|
"version": "0.7.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "webfactory GmbH <info@webfactory.de>",
|
"author": "webfactory GmbH <info@webfactory.de>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@actions/core": "^1.2.4",
|
"@actions/core": "^1.9.1",
|
||||||
"@zeit/ncc": "^0.20.5"
|
"@vercel/ncc": "^0.38.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node scripts/build.js"
|
"build": "node scripts/build.js"
|
||||||
|
|
16
paths.js
Normal file
16
paths.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
const os = require('os');
|
||||||
|
|
||||||
|
module.exports = (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
|
||||||
|
homePath: os.userInfo().homedir,
|
||||||
|
sshAgentCmdDefault: 'ssh-agent',
|
||||||
|
sshAddCmdDefault: 'ssh-add',
|
||||||
|
gitCmdDefault: 'git'
|
||||||
|
} : {
|
||||||
|
// Assuming GitHub hosted `windows-*` runners for now
|
||||||
|
homePath: os.homedir(),
|
||||||
|
sshAgentCmdDefault: 'c://progra~1//git//usr//bin//ssh-agent.exe',
|
||||||
|
sshAddCmdDefault: 'c://progra~1//git//usr//bin//ssh-add.exe',
|
||||||
|
gitCmdDefault: 'c://progra~1//git//bin//git.exe'
|
||||||
|
};
|
56
yarn.lock
56
yarn.lock
|
@ -2,12 +2,52 @@
|
||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
"@actions/core@^1.2.4":
|
"@actions/core@^1.9.1":
|
||||||
version "1.2.6"
|
version "1.11.1"
|
||||||
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09"
|
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.11.1.tgz#ae683aac5112438021588030efb53b1adb86f172"
|
||||||
integrity sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==
|
integrity sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==
|
||||||
|
dependencies:
|
||||||
|
"@actions/exec" "^1.1.1"
|
||||||
|
"@actions/http-client" "^2.0.1"
|
||||||
|
|
||||||
"@zeit/ncc@^0.20.5":
|
"@actions/exec@^1.1.1":
|
||||||
version "0.20.5"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.20.5.tgz#a41af6e6bcab4a58f4612bae6137f70bce0192e3"
|
resolved "https://registry.yarnpkg.com/@actions/exec/-/exec-1.1.1.tgz#2e43f28c54022537172819a7cf886c844221a611"
|
||||||
integrity sha512-XU6uzwvv95DqxciQx+aOLhbyBx/13ky+RK1y88Age9Du3BlA4mMPCy13BGjayOrrumOzlq1XV3SD/BWiZENXlw==
|
integrity sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==
|
||||||
|
dependencies:
|
||||||
|
"@actions/io" "^1.0.1"
|
||||||
|
|
||||||
|
"@actions/http-client@^2.0.1":
|
||||||
|
version "2.2.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.2.3.tgz#31fc0b25c0e665754ed39a9f19a8611fc6dab674"
|
||||||
|
integrity sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==
|
||||||
|
dependencies:
|
||||||
|
tunnel "^0.0.6"
|
||||||
|
undici "^5.25.4"
|
||||||
|
|
||||||
|
"@actions/io@^1.0.1":
|
||||||
|
version "1.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.3.tgz#4cdb6254da7962b07473ff5c335f3da485d94d71"
|
||||||
|
integrity sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==
|
||||||
|
|
||||||
|
"@fastify/busboy@^2.0.0":
|
||||||
|
version "2.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d"
|
||||||
|
integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==
|
||||||
|
|
||||||
|
"@vercel/ncc@^0.38.2":
|
||||||
|
version "0.38.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.38.2.tgz#d35c3a74c671699ccf316f74bf0ecab6b60e312b"
|
||||||
|
integrity sha512-3yel3jaxUg9pHBv4+KeC9qlbdZPug+UMtUOlhvpDYCMSgcNSrS2Hv1LoqMsOV7hf2lYscx+BESfJOIla1WsmMQ==
|
||||||
|
|
||||||
|
tunnel@^0.0.6:
|
||||||
|
version "0.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
|
||||||
|
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
|
||||||
|
|
||||||
|
undici@^5.25.4:
|
||||||
|
version "5.28.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/undici/-/undici-5.28.4.tgz#6b280408edb6a1a604a9b20340f45b422e373068"
|
||||||
|
integrity sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==
|
||||||
|
dependencies:
|
||||||
|
"@fastify/busboy" "^2.0.0"
|
||||||
|
|
Loading…
Reference in a new issue