{"id":7931416,"name":"simbo/git-secret-action","ecosystem":"actions","description":"A GitHub Action to setup git-secret and reveal secrets in a repository.","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/simbo/git-secret-action","keywords_array":["action","git-secret","github-actions","secrets","secrets-management"],"namespace":"simbo","versions_count":4,"first_release_published_at":"2023-07-14T11:17:28.000Z","latest_release_published_at":"2023-07-14T11:18:17.000Z","latest_release_number":"v1.0.0","last_synced_at":"2026-08-18T01:22:56.346Z","created_at":"2023-07-14T14:09:33.492Z","updated_at":"2026-08-18T01:22:56.346Z","registry_url":"https://github.com/simbo/git-secret-action","install_command":null,"documentation_url":null,"metadata":{"name":"git-secret setup and reveal","description":"A GitHub Action to setup git-secret and reveal secrets in a repository.","branding":{"icon":"unlock","color":"gray-dark"},"inputs":{"version":{"required":false,"description":"git-secret version to use"},"private-key":{"required":true,"description":"base64-encoded single-line gpg private key to decrypt secrets"},"passphrase":{"required":true,"description":"gpg passphrase to decrypt secrets"},"github-com-pat":{"required":false,"description":"GitHub.com PAT to retrieve latest git-secret version number from GitHub API (recommended for GitHub Enterprise environments)"}},"runs":{"using":"composite","steps":[{"name":"🐧 Check for Linux","shell":"bash","run":"if ! [ \"$RUNNER_OS\" == \"Linux\" ]; then\n  echo \"::error title=runner os is $RUNNER_OS::simbo/git-secret-action is only for linux runners\"\n  exit 1\nfi\n"},{"name":"🤝 Prepare GitHub API Auth","id":"github-auth","shell":"bash","run":"echo \"::add-mask::${{ inputs.github-com-pat }}\"\nif [[ \"${{ inputs.github-com-pat }}\" = \"\" ]]; then\n  pat=\"\"\nelse\n  pat=\"${{ inputs.github-com-pat }}@\"\nfi\necho \"::set-output name=pat::$pat\"\n"},{"name":"🏷️ Determine git-secret Version","id":"version","shell":"bash","run":"if [[ \"${{ inputs.version }}\" = \"\" ]]; then\n  randomString=\"$(dd if=/dev/urandom bs=16 count=1 status=none | base64 | tr -dc '[:alpha:]')\"\n  versionJson=\"${RUNNER_TEMP}/git-secret-latest-version-${randomString}.json\"\n  curl -sfL https://${{ steps.github-auth.outputs.pat }}api.github.com/repos/sobolevn/git-secret/releases/latest -o \"${versionJson}\" || true\n  if ! [[ -f \"${versionJson}\" ]]; then\n    echo \"::error title=GitHub API Error::Could not retrieve the latest git-secret version info from GitHub API.\"\n    exit 1\n  fi\n  version=\"$(cat \"${versionJson}\" | grep '\"tag_name\":' | cut -d \\\" -f 4 | cut -d v -f 2)\"\n  rm -f \"${versionJson}\"\nelse\n  version=\"${{ inputs.version }}\"\nfi\nif ! [[ \"$version\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+(-.*)?$ ]]; then\n  echo \"::error title=Invalid Version::The git-secret version '${version}' is not a valid semver version.\"\n  exit 1\nfi\necho \"::set-output name=version::$version\"\n"},{"name":"🛠 Setup git-secret","shell":"bash","run":"echo \"::group::🛠 Setup git-secret v${{ steps.version.outputs.version }}\"\nsudo apt update\nsudo apt install -y gpg gawk\nrandomString=\"$(dd if=/dev/urandom bs=16 count=1 status=none | base64 | tr -dc '[:alpha:]')\"\ntempDir=\"${RUNNER_TEMP}/git-secret-${randomString}\"\nmkdir \"$tempDir\"\ncurl -sfLo - \"https://github.com/sobolevn/git-secret/archive/refs/tags/v${{ steps.version.outputs.version }}.tar.gz\" | tar --strip-components=1 -C \"${tempDir}\" -xzf -\nmake -C \"${tempDir}\" build\nsudo make -C \"${tempDir}\" install\nrm -rf \"${tempDir}\"\necho \"::endgroup::\"\n"},{"name":"ℹ️ git-secret Version Info","shell":"bash","run":"echo \"::group::ℹ️ git-secret Version Info\"\necho \"--- GPG VERSION INFO ---\"\ngpg --version\necho \"--- GIT-SECRET VERSION INFO ---\"\ngit secret --version\necho \"::endgroup::\"\n"},{"name":"🔑 Add GPG Key","shell":"bash","run":"echo \"::group::🔑 Add GPG Key\"\necho \"::add-mask::${{ inputs.private-key }}\"\necho \"${{ inputs.private-key }}\" | base64 --decode | gpg --batch --yes --pinentry-mode loopback --import -\necho \"::endgroup::\"\n"},{"name":"🔓 Reveal Secrets","shell":"bash","run":"echo \"::group::🔓 Reveal Secrets\"\necho \"::add-mask::$(printf \"%s\" \"${{ inputs.passphrase }}\")\"\ngit secret reveal -v -p \"$(printf \"%s\" \"${{ inputs.passphrase }}\")\"\necho \"::endgroup::\"\n"}]},"default_branch":"main","path":null},"repo_metadata":{"uuid":"666316173","full_name":"simbo/git-secret-action","owner":"simbo","description":"A GitHub action to setup git-secret and reveal secrets in a repository.","archived":false,"fork":false,"pushed_at":"2023-07-14T11:18:30.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-14T12:09:22.992Z","etag":null,"topics":["action","git-secret","github-actions","secrets","secrets-management"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simbo.png","metadata":{},"created_at":"2023-07-14T08:02:51.000Z","updated_at":"2023-07-14T09:56:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/simbo/git-secret-action","commit_stats":null,"previous_names":["simbo/git-secret-action"],"tags_count":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simbo%2Fgit-secret-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simbo%2Fgit-secret-action/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simbo%2Fgit-secret-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simbo","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145771020,"owners_count":6286407,"icon_url":"https://github.com/github.png","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"repo_metadata_updated_at":"2023-07-14T14:09:34.457Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":41.32034914017718,"dependent_packages_count":0.0,"stargazers_count":48.73306409588327,"forks_count":35.18759770713913,"docker_downloads_count":null,"average":31.310252735799896},"purl":"pkg:githubactions/simbo/git-secret-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/simbo/git-secret-action","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/simbo/git-secret-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/simbo/git-secret-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/simbo%2Fgit-secret-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/simbo%2Fgit-secret-action/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/simbo%2Fgit-secret-action/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/simbo%2Fgit-secret-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/simbo%2Fgit-secret-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/simbo%2Fgit-secret-action/codemeta","maintainers":[]}