mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
commit
34132ca022
8 changed files with 33 additions and 80 deletions
54
.github/workflows/verify.yml.bak
vendored
54
.github/workflows/verify.yml.bak
vendored
|
@ -1,54 +0,0 @@
|
||||||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
||||||
|
|
||||||
on: push
|
|
||||||
name: Connection test
|
|
||||||
jobs:
|
|
||||||
ssh:
|
|
||||||
name: Connect to github.com on ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- Windows-latest
|
|
||||||
- macOS-latest
|
|
||||||
- Ubuntu-16.04
|
|
||||||
- Ubuntu-latest
|
|
||||||
fail-fast: false
|
|
||||||
steps:
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: shimataro/ssh-key-action@HEAD
|
|
||||||
with:
|
|
||||||
private-key: ${{ secrets.SSH_KEY }}
|
|
||||||
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
|
|
||||||
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
|
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
ssh-with-name:
|
|
||||||
name: Connect to github.com on ${{ matrix.os }} with name
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- Windows-latest
|
|
||||||
- macOS-latest
|
|
||||||
- Ubuntu-latest
|
|
||||||
fail-fast: false
|
|
||||||
steps:
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: shimataro/ssh-key-action@HEAD
|
|
||||||
with:
|
|
||||||
private-key: ${{ secrets.SSH_KEY }}
|
|
||||||
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
|
|
||||||
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
|
|
||||||
name: ssh_key_name # optional
|
|
||||||
config: | # optional
|
|
||||||
Host github
|
|
||||||
Hostname github.com
|
|
||||||
User git
|
|
||||||
IdentityFile ~/.ssh/ssh_key_name
|
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone github:shimataro/ssh-key-action.git tmp
|
|
21
CHANGELOG.md
21
CHANGELOG.md
|
@ -7,31 +7,37 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.6.1] - 2020-01-19
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Some bugfixes
|
||||||
|
|
||||||
## [1.6.0] - 2020-01-18
|
## [1.6.0] - 2020-01-18
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
* `public-key` is no longer necessarily
|
* `public-key` is no longer necessarily
|
||||||
|
|
||||||
## [1.5.0]
|
## [1.5.0] - 2019/12/30
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
* Append contents of `config` and `known_hosts` when called multiple times.
|
* Append contents of `config` and `known_hosts` when called multiple times.
|
||||||
|
|
||||||
## [1.4.0]
|
## [1.4.0] - 2019/12/22
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* `config` option
|
* `config` option
|
||||||
|
|
||||||
## [1.3.0]
|
## [1.3.0] - 2019/09/29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* `known-hosts` option
|
* `known-hosts` option
|
||||||
|
|
||||||
## [1.2.0]
|
## [1.2.0] - 2019/09/22
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -42,18 +48,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
|
|
||||||
* Install only `dependencies` packages.
|
* Install only `dependencies` packages.
|
||||||
|
|
||||||
## [1.1.0]
|
## [1.1.0] - 2019/09/19
|
||||||
|
|
||||||
### Others
|
### Others
|
||||||
|
|
||||||
* Support Visual Studio Code officially.
|
* Support Visual Studio Code officially.
|
||||||
* Use GitHub Actions for build test.
|
* Use GitHub Actions for build test.
|
||||||
|
|
||||||
## [1.0.0]
|
## [1.0.0] - 2019/09/18
|
||||||
|
|
||||||
* First release.
|
* First release.
|
||||||
|
|
||||||
[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.6.0...HEAD
|
[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.6.1...HEAD
|
||||||
|
[1.6.1]: https://github.com/shimataro/ssh-key-action/compare/v1.6.0...v1.6.1
|
||||||
[1.6.0]: https://github.com/shimataro/ssh-key-action/compare/v1.5.0...v1.6.0
|
[1.6.0]: https://github.com/shimataro/ssh-key-action/compare/v1.5.0...v1.6.0
|
||||||
[1.5.0]: https://github.com/shimataro/ssh-key-action/compare/v1.4.0...v1.5.0
|
[1.5.0]: https://github.com/shimataro/ssh-key-action/compare/v1.4.0...v1.5.0
|
||||||
[1.4.0]: https://github.com/shimataro/ssh-key-action/compare/v1.3.0...v1.4.0
|
[1.4.0]: https://github.com/shimataro/ssh-key-action/compare/v1.3.0...v1.4.0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Install SSH key
|
# Install SSH Key
|
||||||
|
|
||||||
[![Build][image-build]][link-build]
|
[![Build][image-build]][link-build]
|
||||||
[![Windows][image-verify-windows]][link-verify-windows]
|
[![Windows][image-verify-windows]][link-verify-windows]
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
[![License][image-license]][link-license]
|
[![License][image-license]][link-license]
|
||||||
[![Stars][image-stars]][link-stars]
|
[![Stars][image-stars]][link-stars]
|
||||||
|
|
||||||
This action installs SSH key into `~/.ssh`.
|
This action installs SSH key in `~/.ssh`.
|
||||||
|
|
||||||
Useful for SCP, SFTP, and `rsync` over SSH in deployment script.
|
Useful for SCP, SFTP, and `rsync` over SSH in deployment script.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
||||||
name: "Install SSH Key"
|
name: "Install SSH Key"
|
||||||
description: "Install SSH key to ~/.ssh"
|
description: "Install SSH key in ~/.ssh"
|
||||||
author: "shimataro"
|
author: "shimataro"
|
||||||
branding:
|
branding:
|
||||||
icon: "terminal"
|
icon: "terminal"
|
||||||
|
|
18
package-lock.json
generated
18
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ssh-key-action",
|
"name": "install-ssh-key",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -177,12 +177,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ajv": {
|
"ajv": {
|
||||||
"version": "6.10.2",
|
"version": "6.11.0",
|
||||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz",
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz",
|
||||||
"integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==",
|
"integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fast-deep-equal": "^2.0.1",
|
"fast-deep-equal": "^3.1.1",
|
||||||
"fast-json-stable-stringify": "^2.0.0",
|
"fast-json-stable-stringify": "^2.0.0",
|
||||||
"json-schema-traverse": "^0.4.1",
|
"json-schema-traverse": "^0.4.1",
|
||||||
"uri-js": "^4.2.2"
|
"uri-js": "^4.2.2"
|
||||||
|
@ -1163,9 +1163,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fast-deep-equal": {
|
"fast-deep-equal": {
|
||||||
"version": "2.0.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
|
||||||
"integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=",
|
"integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"fast-diff": {
|
"fast-diff": {
|
||||||
|
|
10
package.json
10
package.json
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "ssh-key-action",
|
"name": "install-ssh-key",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Install SSH key to .ssh",
|
"description": "Install SSH key in .ssh",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 8.0.0",
|
"node": ">=8.0.0",
|
||||||
"npm": ">=5.7.0"
|
"npm": ">=5.7.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"lint": "run-p lint:*",
|
"lint": "run-p lint:*",
|
||||||
"lint:ts": "eslint ./src --ext .ts",
|
"lint:ts": "eslint ./src --ext .ts",
|
||||||
"lint:md": "markdownlint . --ignore node_modules --ignore examples",
|
"lint:md": "markdownlint . --ignore node_modules --ignore examples",
|
||||||
"lint:yaml": "yamllint .*.yml *.yml --ignore=node_modules/**/*.yml --ignore=node_modules/**/*.yaml",
|
"lint:yaml": "yamllint **/{,.}*.{yml,yaml} --ignore=node_modules/**",
|
||||||
"verify": "run-p lint"
|
"verify": "run-p lint"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# - git; I believe it's already installed.
|
# - git; I believe it's already installed.
|
||||||
# - sed; GNU sed is preferred. POSIX sed may not work.
|
# - sed; GNU sed is preferred. POSIX sed may not work.
|
||||||
|
|
||||||
BASE_BRANCH="development"
|
BASE_BRANCH="develop"
|
||||||
|
|
||||||
PACKAGE_NAME="ssh-key-action"
|
PACKAGE_NAME="ssh-key-action"
|
||||||
URL_PRODUCT="https://github.com/shimataro/${PACKAGE_NAME}"
|
URL_PRODUCT="https://github.com/shimataro/${PACKAGE_NAME}"
|
||||||
|
|
|
@ -7,7 +7,7 @@ COLOR_SUCCESS="\e[1;32m"
|
||||||
COLOR_RESET="\e[m"
|
COLOR_RESET="\e[m"
|
||||||
|
|
||||||
# create branch
|
# create branch
|
||||||
git checkout development || exit 1
|
git checkout develop || exit 1
|
||||||
git checkout -b ${BRANCH} || exit 1
|
git checkout -b ${BRANCH} || exit 1
|
||||||
|
|
||||||
# check updates
|
# check updates
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue