Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkribeiro/gh-update-secrets-visibility
PHP helper script to include new repositories for an organization secret
https://github.com/jkribeiro/gh-update-secrets-visibility
Last synced: 2 days ago
JSON representation
PHP helper script to include new repositories for an organization secret
- Host: GitHub
- URL: https://github.com/jkribeiro/gh-update-secrets-visibility
- Owner: jkribeiro
- License: mit
- Created: 2021-09-18T15:31:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-20T15:31:19.000Z (over 3 years ago)
- Last Synced: 2024-11-09T16:04:15.900Z (about 2 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub update secrets visibility
PHP helper script to include new repositories for an organization secret when the visibility for repository access is set to `selected`.
GitHub API [related docs](https://docs.github.com/en/rest/reference/actions#set-selected-repositories-for-an-organization-secret).
## Usage
Run `composer install`Create a config file `config.yml` in the root folder with the following format:
```
org:
pat: ''
secrets:
-
-
-
repos_file:
```Create a text file containing a list of repositories to be included in the secrets list.
Run the command to execute the script: `./run`