{"id":13593637,"url":"https://github.com/credfeto/credfeto-enum-source-generation","last_synced_at":"2026-05-03T07:03:38.979Z","repository":{"id":62767274,"uuid":"562318498","full_name":"credfeto/credfeto-enum-source-generation","owner":"credfeto","description":"C# source generator for producing faster enum lookups","archived":false,"fork":false,"pushed_at":"2025-09-03T18:41:41.000Z","size":3521,"stargazers_count":20,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-03T20:31:58.020Z","etag":null,"topics":["code-analysis","code-generation","code-generator","csharp-sourcegenerator","dotnet","generator","optimization","performance"],"latest_commit_sha":null,"homepage":"","language":"C#","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/credfeto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"credfeto","buy_me_a_coffee":"mark.ridgwell"}},"created_at":"2022-11-06T00:36:26.000Z","updated_at":"2025-09-03T18:37:59.000Z","dependencies_parsed_at":"2024-12-31T04:27:02.008Z","dependency_job_id":"101b7840-d76b-46ce-ac4b-510f622fcf8a","html_url":"https://github.com/credfeto/credfeto-enum-source-generation","commit_stats":null,"previous_names":[],"tags_count":572,"template":false,"template_full_name":"credfeto/cs-template","purl":"pkg:github/credfeto/credfeto-enum-source-generation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/credfeto%2Fcredfeto-enum-source-generation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/credfeto%2Fcredfeto-enum-source-generation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/credfeto%2Fcredfeto-enum-source-generation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/credfeto%2Fcredfeto-enum-source-generation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/credfeto","download_url":"https://codeload.github.com/credfeto/credfeto-enum-source-generation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/credfeto%2Fcredfeto-enum-source-generation/sbom","scorecard":{"id":542411,"data":{"date":"2025-08-20T06:25:12Z","repo":{"name":"github.com/credfeto/credfeto-enum-source-generation","commit":"578c9e5a22719701ca2bcf0317a5c1e173dae07d"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":5.4,"checks":[{"name":"CI-Tests","score":-1,"reason":"no pull request found","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/approve-dependabot.yml:145","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/approve-dependabot.yml:29","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/approve-dependabot.yml:70","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/approve-dependabot.yml:109","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/create-prs-for-stale-branches.yml:70","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/merge-dependabot.yml:37","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/on_new_pr.yml:23","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/on_new_pr.yml:38","Info: topLevel 'contents' permission set to 'read': .github/workflows/approve-dependabot.yml:18","Warn: topLevel 'contents' permission set to 'write': .github/workflows/build-and-publish-pre-release.yml:24","Warn: topLevel 'security-events' permission set to 'write': .github/workflows/build-and-publish-pre-release.yml:25","Warn: topLevel 'contents' permission set to 'write': .github/workflows/build-and-publish-release.yml:15","Warn: topLevel 'security-events' permission set to 'write': .github/workflows/build-and-publish-release.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/create-prs-for-stale-branches.yml:17","Warn: no topLevel permission defined: .github/workflows/dependabot.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/deploy.yml:43","Warn: topLevel 'security-events' permission set to 'write': .github/workflows/deploy.yml:44","Warn: topLevel 'contents' permission set to 'write': .github/workflows/dotnet-version.yml:17","Info: topLevel 'contents' permission set to 'read': .github/workflows/merge-dependabot.yml:26","Warn: topLevel 'contents' permission set to 'write': .github/workflows/missing-releases.yml:18","Warn: no topLevel permission defined: .github/workflows/on-pr-closed.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/on_new_pr.yml:16","Info: topLevel permissions set to 'read-all': .github/workflows/oss-scorecared.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/pr-lint.yml:10","Warn: no topLevel permission defined: .github/workflows/pr-update.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/pull-request.yml:12","Info: topLevel 'repository-projects' permission set to 'read': .github/workflows/todos.yml:14","Info: topLevel 'contents' permission set to 'read': .github/workflows/todos.yml:15","Info: topLevel 'contents' permission set to 'read': .github/workflows/update-labels.yml:16"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"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/approve-dependabot.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/approve-dependabot.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/approve-dependabot.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/approve-dependabot.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/approve-dependabot.yml:128: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/approve-dependabot.yml:134: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/approve-dependabot.yml:164: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/approve-dependabot.yml:170: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/approve-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-publish-pre-release.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-pre-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-publish-pre-release.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-pre-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-publish-pre-release.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-pre-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-publish-pre-release.yml:157: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-pre-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-publish-release.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-publish-release.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-publish-release.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-publish-release.yml:148: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/build-and-publish-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:127: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:135: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:142: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:193: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:204: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:221: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:230: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:244: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:255: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:264: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-prs-for-stale-branches.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/create-prs-for-stale-branches.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/deploy.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/deploy.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/deploy.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dotnet-version.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/dotnet-version.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dotnet-version.yml:104: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/dotnet-version.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/merge-dependabot.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/merge-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/merge-dependabot.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/merge-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/missing-releases.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/missing-releases.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/on_new_pr.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/on_new_pr.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/on_new_pr.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/on_new_pr.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/oss-scorecared.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/oss-scorecared.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/oss-scorecared.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/oss-scorecared.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/oss-scorecared.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/oss-scorecared.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/oss-scorecared.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/oss-scorecared.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/oss-scorecared.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/oss-scorecared.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:236: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:242: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:354: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:364: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:371: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:393: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:399: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:422: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:428: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:120: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:271: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:277: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:298: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:304: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:325: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-lint.yml:331: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-update.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-update.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-update.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-update.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-update.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pr-update.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:123: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request.yml:136: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:149: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:158: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/todos.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/todos.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/todos.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/todos.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/todos.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/todos.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-labels.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/update-labels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-labels.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/credfeto/credfeto-enum-source-generation/update-labels.yml/main?enable=pin","Info:   0 out of  51 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  34 third-party GitHubAction 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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Info: codeowner review is required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Info: 'up-to-date branches' is required to merge on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on 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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Contributors","score":3,"reason":"project has 1 contributing companies or organizations -- score normalized to 3","details":["Info: found contributions from: funfair-tech"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}}]},"last_synced_at":"2025-08-20T08:32:51.072Z","repository_id":62767274,"created_at":"2025-08-20T08:32:51.072Z","updated_at":"2025-08-20T08:32:51.072Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273569863,"owners_count":25129090,"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-09-04T02:00:08.968Z","response_time":61,"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":["code-analysis","code-generation","code-generator","csharp-sourcegenerator","dotnet","generator","optimization","performance"],"created_at":"2024-08-01T16:01:22.497Z","updated_at":"2026-02-21T16:23:06.125Z","avatar_url":"https://github.com/credfeto.png","language":"C#","funding_links":["https://github.com/sponsors/credfeto","https://buymeacoffee.com/mark.ridgwell"],"categories":["C#","Content","Source Generators","C\\#"],"sub_categories":["74. [CredFetoEnum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/CredFetoEnum) , in the [Enum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enum) category","Enums"],"readme":"# credfeto-enum-source-generation\n\nC# Source generator for enums\n\n## Using\n\nAdd a reference to the ``Credfeto.Enumeration.Source.Generation`` package in each project you need the code generation to run.\n\n```xml\n\u003cItemGroup\u003e\n  \u003cPackageReference \n            Include=\"Credfeto.Enumeration.Source.Generation\" \n            Version=\"1.0.0.11\" \n            PrivateAssets=\"All\" ExcludeAssets=\"runtime\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\nFor each enum in the project, generates a class with the following extension methods:\n\n* public static string GetName(this MyEnum value)\n* public static string GetDescription(this MyEnum value)\n\nGiven an the example enum defined below:\n\n```csharp\npublic enum ExampleEnumValues\n{\n    ZERO = 0,\n\n    [Description(\"One \\\"1\\\"\")]\n    ONE = 1,\n\n    SAME_AS_ONE = ONE,\n}\n```\n\nTo get the name and value of the enum values. In release mode this can be practically instant.\n\n```csharp\nExampleEnumValues value = ExampleEnumValues.ONE;\n string name = value.GetName(); // ONE\n string description = value.GetDescription(); // One \"1\"\n bool isDefined = value.IsDefine(); // true\n bool isNotDefined = ((ExampleEnumValues)42).IsDefine(); // false\n```\n\n## Enums in other assemblies\n\nReference the following package in the project that contains the enum extensions class to generate.\n\n```xml\n\u003cItemGroup\u003e\n    \u003cPackageReference\n            Include=\"Credfeto.Enumeration.Source.Generation.Attributes\"\n            Version=\"0.0.2.3\"\n            PrivateAssets=\"All\" ExcludeAssets=\"runtime\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\nAdd an ``EnumText`` attribute to a partial static extension class for each enum you want to expose.\n\n```csharp\n[EnumText(typeof(System.Net.HttpStatusCode))]\n[EnumText(typeof(ThirdParty.ExampleEnum))]\npublic static partial class EnumExtensions\n{\n}\n```\n\nWill generate the same extension methods, but for the types nominated in the attributes.\n\n## Benchmarks\n\nBenchmarks are in the Benchmark.net project ``Credfeto.Enumeration.Source.Generation.Benchmarks``, with a summary of a\nrun below.\n\n|                         Method |          Mean |      Error |     StdDev |        Median | Allocated |\n|------------------------------- |--------------:|-----------:|-----------:|--------------:|----------:|\n|                GetNameToString |    25.5162 ns |  0.4146 ns |  0.3675 ns |    25.5322 ns |      24 B |\n|              GetNameReflection |    37.8875 ns |  0.3971 ns |  0.3520 ns |    37.8542 ns |      24 B |\n|        GetNameCachedReflection |    21.6571 ns |  0.4514 ns |  0.3770 ns |    21.6841 ns |      24 B |\n|           GetNameCodeGenerated |     0.0009 ns |  0.0039 ns |  0.0036 ns |     0.0000 ns |         - |\n|       GetDescriptionReflection | 1,380.4979 ns | 15.1089 ns | 13.3937 ns | 1,382.9476 ns |     264 B |\n| GetDescriptionCachedReflection |    22.8844 ns |  0.3856 ns |  0.3607 ns |    22.8364 ns |      24 B |\n|    GetDescriptionCodeGenerated |     0.0035 ns |  0.0057 ns |  0.0053 ns |     0.0000 ns |         - |\n|        IsDefinedCodeReflection |    48.7961 ns |  0.9675 ns |  1.0352 ns |    48.5573 ns |      24 B |\n|  IsDefinedCodeReflectionCached |    21.4452 ns |  0.3169 ns |  0.2965 ns |    21.3938 ns |      24 B |\n|         IsDefinedCodeGenerated |     0.0012 ns |  0.0041 ns |  0.0037 ns |     0.0000 ns |         - |\n\n\n```\n// * Warnings *\nZeroMeasurement\n  EnumBench.GetNameCodeGenerated: Default        -\u003e The method duration is indistinguishable from the empty method duration\n  EnumBench.GetDescriptionCodeGenerated: Default -\u003e The method duration is indistinguishable from the empty method duration\n  EnumBench.IsDefinedCodeGenerated: Default      -\u003e The method duration is indistinguishable from the empty method duration\n\n// * Legends *\n  Mean      : Arithmetic mean of all measurements\n  Error     : Half of 99.9% confidence interval\n  StdDev    : Standard deviation of all measurements\n  Median    : Value separating the higher half of all measurements (50th percentile)\n  Allocated : Allocated memory per single operation (managed only, inclusive, 1KB = 1024B)\n  1 ns      : 1 Nanosecond (0.000000001 sec)\n```\n\n## Viewing Compiler Generated files\n\nAdd the following to the csproj file:\n\n```xml\n  \u003cPropertyGroup\u003e\n    \u003cEmitCompilerGeneratedFiles\u003etrue\u003c/EmitCompilerGeneratedFiles\u003e\n    \u003cCompilerGeneratedFilesOutputPath\u003eGenerated\u003c/CompilerGeneratedFilesOutputPath\u003e\n  \u003c/PropertyGroup\u003e\n  \u003cItemGroup\u003e\n    \u003c!-- Don't include the output from a previous source generator execution into future runs; the */** trick here ensures that there's\n    at least one subdirectory, which is our key that it's coming from a source generator as opposed to something that is coming from\n    some other tool. --\u003e\n    \u003cCompile Remove=\"$(CompilerGeneratedFilesOutputPath)/*/**/*.cs\" /\u003e\n  \u003c/ItemGroup\u003e\n```\n\n## Build Status\n\n| Branch  | Status                                                                                                                                                                                                                                                              |\n|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| main    | [![Build: Pre-Release](https://github.com/credfeto/credfeto-enum-source-generation/actions/workflows/build-and-publish-pre-release.yml/badge.svg)](https://github.com/credfeto/credfeto-enum-source-generation/actions/workflows/build-and-publish-pre-release.yml) |\n| release | [![Build: Release](https://github.com/credfeto/credfeto-enum-source-generation/actions/workflows/build-and-publish-release.yml/badge.svg)](https://github.com/credfeto/credfeto-enum-source-generation/actions/workflows/build-and-publish-release.yml)             |\n\n## Changelog\n\nView [changelog](CHANGELOG.md)\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcredfeto%2Fcredfeto-enum-source-generation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcredfeto%2Fcredfeto-enum-source-generation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcredfeto%2Fcredfeto-enum-source-generation/lists"}