{"id":15099384,"url":"https://github.com/nicklasfrahm/file-secret-action","last_synced_at":"2025-10-08T05:30:37.055Z","repository":{"id":65195379,"uuid":"367789870","full_name":"nicklasfrahm/file-secret-action","owner":"nicklasfrahm","description":"A GitHub Action to upload a file as a GitHub Actions Secret.","archived":true,"fork":false,"pushed_at":"2021-12-28T17:38:54.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-11T17:10:37.113Z","etag":null,"topics":["action","file","github","secret"],"latest_commit_sha":null,"homepage":"","language":"Go","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/nicklasfrahm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-16T05:09:11.000Z","updated_at":"2023-01-28T04:28:56.000Z","dependencies_parsed_at":"2023-01-13T15:54:03.928Z","dependency_job_id":null,"html_url":"https://github.com/nicklasfrahm/file-secret-action","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"958ea66d2c9343c3df56f06d4d23369b110f5c96"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nicklasfrahm/file-secret-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklasfrahm%2Ffile-secret-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklasfrahm%2Ffile-secret-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklasfrahm%2Ffile-secret-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklasfrahm%2Ffile-secret-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicklasfrahm","download_url":"https://codeload.github.com/nicklasfrahm/file-secret-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklasfrahm%2Ffile-secret-action/sbom","scorecard":{"id":685197,"data":{"date":"2025-08-11","repo":{"name":"github.com/nicklasfrahm/file-secret-action","commit":"958ea66d2c9343c3df56f06d4d23369b110f5c96"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/container.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/container.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/nicklasfrahm/file-secret-action/container.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/nicklasfrahm/file-secret-action/container.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/nicklasfrahm/file-secret-action/container.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/nicklasfrahm/file-secret-action/container.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/nicklasfrahm/file-secret-action/container.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/container.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/nicklasfrahm/file-secret-action/container.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:6","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T00:34:42.756Z","repository_id":65195379,"created_at":"2025-08-22T00:34:42.756Z","updated_at":"2025-08-22T00:34:42.756Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892042,"owners_count":26063919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"}},"keywords":["action","file","github","secret"],"created_at":"2024-09-25T17:11:50.376Z","updated_at":"2025-10-08T05:30:36.705Z","avatar_url":"https://github.com/nicklasfrahm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔑 File to Secret for GitHub Actions (deprecated)\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/nicklasfrahm/file-secret-action)](https://goreportcard.com/report/github.com/nicklasfrahm/file-secret-action)\n[![container](https://github.com/nicklasfrahm/file-secret-action/actions/workflows/container.yml/badge.svg?branch=main)](https://github.com/nicklasfrahm/file-secret-action/actions/workflows/container.yml)\n\nA [GitHub Action](https://github.com/features/actions) to upload a file as a GitHub Actions Secret.\n\n## Deprecation notice\n\nThis repository is deprecated. I recommend to use the Github CLI instead and set up the following step:\n\n```yaml\n...\n      - name: Upload kubeconfig as pipeline secret\n        run: |\n          echo ${{ secrets.PERSONAL_ACCESS_TOKEN }} | gh auth login --with-token\n          gh secret set KUBECONFIG -R ${{ github.repository }} -e ${{ env.ENVIRONMENT }} \u003c kubeconfig.yml\n...\n```\n\n## Usage\n\n```yaml\nname: file-secret\n\non:\n  - push\n\njobs:\n  file-secret:\n    name: File Secret\n    runs-on: ubuntu-latest\n    steps:\n      - name: Check out repository\n        uses: actions/checkout@master\n\n      - name: Upload kubeconfig\n        uses: nicklasfrahm/file-secret-action@main\n        with:\n          token: ${{ secrets.PAT }}\n          scope: ${{ github.repository }}\n          secret: KUBECONFIG\n          file: kubeconfig.yml\n```\n\n## Input variables\n\nSee [action.yml](./action.yml) for more detailed information.\n\n* `token` - personal access token with the `workflow` permission, the standard `GITHUB_TOKEN` does not work\n* `scope` - name of the organisation or username and repository\n* `secret` - name of the secret\n* `file` - file to be stored in secret\n* `visibility` - visibility of the secret within the organization, currently only _private_ and _all_ are supported\n\n## Contributing\n\nThis repository is archived and therefore frozen. Please maintain your own copies and forks.\n\n## License\n\nThis project is licensed under the [MIT license](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklasfrahm%2Ffile-secret-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicklasfrahm%2Ffile-secret-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklasfrahm%2Ffile-secret-action/lists"}