Skip to content
Closed
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![StepSecurity Maintained Action](https://raw.githubusercontent.com/step-security/maintained-actions-assets/main/assets/maintained-action-banner.png)](https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions)

# `ssh-agent` GitHub Action

This action
Expand Down
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11678,6 +11678,11 @@ async function validateSubscription() {

try {
(async () => {
const repoPrivate = JSON.parse(process.env.GITHUB_CONTEXT || '{}').repository?.private
if (repoPrivate === false) {
core.info('\u001b[32m✓ Free for public repositories\u001b[0m')
return
}
await validateSubscription();
const privateKey = core.getInput('ssh-private-key');
const logPublicKey = core.getBooleanInput('log-public-key', {default: true});
Expand Down
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ async function validateSubscription() {

try {
(async () => {
const repoPrivate = JSON.parse(process.env.GITHUB_CONTEXT || '{}').repository?.private
if (repoPrivate === false) {
core.info('\u001b[32m✓ Free for public repositories\u001b[0m')
return
}
await validateSubscription();
const privateKey = core.getInput('ssh-private-key');
const logPublicKey = core.getBooleanInput('log-public-key', {default: true});
Expand Down
Loading