{"id":17817104,"url":"https://github.com/030/settings-action","last_synced_at":"2026-02-16T13:03:18.401Z","repository":{"id":223108329,"uuid":"758945879","full_name":"030/settings-action","owner":"030","description":"Settings Action configures the settings of a GitHub repository.","archived":false,"fork":false,"pushed_at":"2025-07-06T11:40:11.000Z","size":20,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T21:31:41.066Z","etag":null,"topics":["composite-action","github-project-setup","github-settings","settings-as-code"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/030.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-17T14:42:12.000Z","updated_at":"2025-07-06T11:28:18.000Z","dependencies_parsed_at":"2024-02-18T11:25:08.854Z","dependency_job_id":"ab85d0d6-6922-426c-905c-7dd2725e8297","html_url":"https://github.com/030/settings-action","commit_stats":null,"previous_names":["030/settings-action"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/030/settings-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fsettings-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fsettings-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fsettings-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fsettings-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/030","download_url":"https://codeload.github.com/030/settings-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fsettings-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29508740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["composite-action","github-project-setup","github-settings","settings-as-code"],"created_at":"2024-10-27T16:40:44.282Z","updated_at":"2026-02-16T13:03:18.384Z","avatar_url":"https://github.com/030.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# settings-action\n\nSettings Action that will configure the settings of a GitHub repository.\n\n## Usage\n\nCreate a `~/.github/workflows/settings-guard.yml` file:\n\n```bash\n---\nname: settings-guard\n'on':\n  schedule:\n    - cron: '42 6 * * *'\npermissions: {}\njobs:\n  settings-action:\n    runs-on: ubuntu-22.04\n    steps:\n      - uses: 030/settings-action@v0.8.0\n        env:\n          GH_TOKEN: ${{ secrets.SETTINGS_GUARD }}\n        with:\n          debug: false\n          description: \"Settings Action configures the settings of a GitHub repository.\"\n          project: 030/settings-guard\n          settings_default_workflow_permissions: \"read\"\n          settings_delete_branch_on_merge: true\n          settings_discussions: false\n          settings_github_workflows_can_approve_pull_request_reviews: true\n          settings_merge_commit: false\n          settings_merge_rebase: false\n          settings_merge_squash: true\n          settings_protect_main_branch: true\n          settings_protect_main_branch_enforce_admins: true\n          settings_protect_main_branch_required_approving_review_count: 1\n          settings_projects: false\n          settings_wiki: false\n          topics: composite-action,github-project-setup,github-settings,settings-as-code\n```\n\nuse the following variables:\n\n| Option                                                       | Description                                                        |\n| ------------------------------------------------------------ | ------------------------------------------------------------------ |\n| debug                                                        | Enable debug logging                                               |\n| description                                                  | Change the description of a GitHub repository                      |\n| project                                                      | The owner/repo                                                     |\n| settings_default_workflow_permissions                        | Set the default workflow permissions to read or write              |\n| settings_delete_branch_on_merge                              | Delete a branch on merge or not                                    |\n| settings_discussions                                         | Enable the discussions tab or not                                  |\n| settings_github_workflows_can_approve_pull_request_reviews   | Whether workflows can approve pull requests                        |\n| settings_merge_commit                                        | Enable merge commit                                                |\n| settings_merge_rebase                                        | Enable merge request rebase                                        |\n| settings_merge_squash                                        | Enable merge request squash                                        |\n| settings_protect_main_branch                                 | Protect the main branch or not                                     |\n| settings_protect_main_branch_enforce_admins                  | Enforce branch protection for admins                               |\n| settings_protect_main_branch_required_approving_review_count | The number of approvals that is required before a PR can be merged |\n| settings_projects                                            | Whether the project tab should be enabled                          |\n| settings_wiki                                                | Wiki enabled or not                                                |\n| topics                                                       | The topic(s) that will appear in the about menu of a project       |\n\nand create a token with read and admin permissions and store it as a\n`SETTINGS_GUARD` variable in the variables menu.\n\n## Testing\n\n- [Install](https://github.com/cli/cli?tab=readme-ov-file#installation) gh cli.\n- Create a read only token.\n- Login: `gh auth login` and `choose token` option.\n- Check [these graphql samples](https://gist.github.com/duboisf/68fb6e22ac0a2165ca298074f0e3b553)\n  that can be useful while testing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F030%2Fsettings-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F030%2Fsettings-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F030%2Fsettings-action/lists"}