{"id":27044102,"url":"https://github.com/math280h/validate-secrets-action","last_synced_at":"2025-07-09T08:12:05.459Z","repository":{"id":224276617,"uuid":"762873521","full_name":"math280h/validate-secrets-action","owner":"math280h","description":"Validate variables and secrets inside github actions workflows using the Github API.","archived":false,"fork":false,"pushed_at":"2024-06-04T17:59:58.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T05:11:41.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/math280h.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-24T23:24:55.000Z","updated_at":"2024-03-17T01:33:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9f6d095-17df-4af0-92a6-5ab18318bc6d","html_url":"https://github.com/math280h/validate-secrets-action","commit_stats":null,"previous_names":["math280h/validate-secrets-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/math280h/validate-secrets-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math280h%2Fvalidate-secrets-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math280h%2Fvalidate-secrets-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math280h%2Fvalidate-secrets-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math280h%2Fvalidate-secrets-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/math280h","download_url":"https://codeload.github.com/math280h/validate-secrets-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math280h%2Fvalidate-secrets-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264419579,"owners_count":23605203,"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","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":[],"created_at":"2025-04-05T05:19:02.322Z","updated_at":"2025-07-09T08:12:05.436Z","avatar_url":"https://github.com/math280h.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# validate-secrets-action\n\nValidate variables and secrets inside github actions workflows using the Github API.\n\nThe action can check repository secrets/vars, environment secrets/vars and organization secrets/vars given the right permissions on the GH Token.\n\n## Usage/Examples\n\nFor this to work, you must create a token with the following permissions:\n![Github Token Permissions](docs/permissions.png)\n\nTo enable organization level checks, you must also give the token access to read organization level secrets\n\nThe action will be marked as failed if any of the secrets or vars in the files being checked is missing.\n\n```yml\non: [push]\n\njobs:\n  hello_world_job:\n    runs-on: ubuntu-latest\n    name: Validate secrets in the repository\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Install npm package\n        run: npm install\n\n      - name: Test the action\n        id: test\n        uses: ./\n        with:\n          files: |-\n            test.yaml\n          gh_token: ${{ secrets.SECRET_VALIDATION_TOKEN }}\n          verbose: \"true\"\n\n      - name: Test secret exists\n        run: echo ${{ secrets.TEST_SECRET }}\n\n      - name: Test secret does not exist\n        run: echo ${{ secrets.TEST_SECRET_2 }}\n\n      - name: Test var exists\n        run: echo ${{ vars.TEST_VAR }}\n\n      - name: Test var does not exist\n        run: echo ${{ vars.TEST_VAR_2 }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath280h%2Fvalidate-secrets-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmath280h%2Fvalidate-secrets-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath280h%2Fvalidate-secrets-action/lists"}