{"id":15760080,"url":"https://github.com/padupe/action-generate-token-github-app","last_synced_at":"2026-04-27T12:01:46.786Z","repository":{"id":153490942,"uuid":"629086409","full_name":"padupe/action-generate-token-github-app","owner":"padupe","description":"Action to generate token for GitHub App","archived":false,"fork":false,"pushed_at":"2023-05-15T16:09:28.000Z","size":524,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-11T15:53:45.004Z","etag":null,"topics":["github-actions","github-api","github-app"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/padupe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-17T15:33:23.000Z","updated_at":"2023-04-18T18:01:50.000Z","dependencies_parsed_at":"2023-05-28T10:31:14.680Z","dependency_job_id":null,"html_url":"https://github.com/padupe/action-generate-token-github-app","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/padupe/action-generate-token-github-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padupe%2Faction-generate-token-github-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padupe%2Faction-generate-token-github-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padupe%2Faction-generate-token-github-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padupe%2Faction-generate-token-github-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/padupe","download_url":"https://codeload.github.com/padupe/action-generate-token-github-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padupe%2Faction-generate-token-github-app/sbom","scorecard":{"id":717671,"data":{"date":"2025-08-11","repo":{"name":"github.com/padupe/action-generate-token-github-app","commit":"974778a62b9c6a24a95cb897ab977aa068c8c68e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":-1,"reason":"no dependencies found","details":null,"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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 'master'"],"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":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-22T10:13:35.274Z","repository_id":153490942,"created_at":"2025-08-22T10:13:35.274Z","updated_at":"2025-08-22T10:13:35.274Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["github-actions","github-api","github-app"],"created_at":"2024-10-04T10:40:51.007Z","updated_at":"2026-04-27T12:01:46.767Z","avatar_url":"https://github.com/padupe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# action-generate-token-github-app\n\n\u003e Documentation available in Portuguese (pt-BR) [here](./docs/README.pt-BR.md).\n\n## Index\n\n- [Description](#description)\n- [Flow](#flow)\n- [Requirements](#requirements)\n  - [Secrets](#secrets)\n- [Use](#use)\n  - [\"Separate\" use](#separate-use)\n  - [General use](#general-use)\n- [Output](#output)\n- [Contribute to the Project](#contribute-to-the-project)\n\n## Description\n\nAction that generates Token to be consumed in interactions via [GitHub API](https://docs.github.com/en/rest?apiVersion=2022-11-28).\n\nUseful for organizations that own [GitHub App's](https://docs.github.com/en/apps).\n\n## Flow\n\n![](./docs/assets/flow.png)\n\n## Requirements\n\n### Secrets\n\nSecret `CREDENTIALS_GITHUB_APP_PRIVATE_KEY` on PEM format:\n\n```\n-----BEGIN RSA PRIVATE KEY-----\n  9999999999999999999999999999999999999999999999999999999999999999\n  QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ\n  ....\n  -----END RSA PRIVATE KEY-----\n```\n\n## Use\n\n### \"Separate\" use\n\n\u003e As much as it doesn't make sense, in case the user wants a \"separate flow\" to obtain a Token.\u003cbr\u003e\n\u003e The flow would look like the one shown below.\n\n1. Create directory `.github/worfklows` in the root of your project;\n\n2. Create file `generate-token-github-app.yaml` with content similar to the following:\n\n```yaml\nname: Generate Token from GitHub App\non:\n  pull_request:\n    types: [opened, reopened, synchronize]\n    branches:\n      - main\n\njobs:\n  generate-token-github-app:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Generate Token from GitHub App\n        uses: padupe/action-generate-token-github-app@1.1.3\n        with:\n          appId: ${{ secrets.CREDENTIALS_GITHUB_APP_ID }}\n          installationId: ${{ secrets.CREDENTIALS_GITHUB_APP_INSTALLATION_ID }}\n          privateKey: ${{ secrets.CREDENTIALS_GITHUB_APP_PRIVATE_KEY }}\n```\n\n### General use\n\nThe most appropriate use (and that makes the most sense), is implementing this action as a step in a flow:\n\n```yaml\n[...]\n      - name: Generate Token from GitHub App\n        id: generate-token-github-app\n        uses: padupe/action-generate-token-github-app@1.1.3\n        with:\n          appId: ${{ secrets.CREDENTIALS_GITHUB_APP_ID }}\n          installationId: ${{ secrets.CREDENTIALS_GITHUB_APP_INSTALLATION_ID }}\n          privateKey: ${{ secrets.CREDENTIALS_GITHUB_APP_PRIVATE_KEY }}\n\n      - name: Content Change Validation\n        uses: padupe/action-content-change-validation@1.1.4\n        with:\n          directoryOrFile: .github/workflows\n          gitHubToken: ${{ steps.generate-token-github-app.outputs.gitHubToken }}\n[...]\n```\n\n## Output\n\n`gitHubToken`: token to be used in interactions via [GitHub API](https://docs.github.com/en/rest?apiVersion=2022-11-28).\n\n## Contribute to the Project\n\nCheck our [CONTRIBUTING](./CONTRIBUTING.md) guidelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadupe%2Faction-generate-token-github-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpadupe%2Faction-generate-token-github-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadupe%2Faction-generate-token-github-app/lists"}