Skip to content

PandasWhoCode/update-custom-properties

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README for the project Update Custom Properties

Update custom properties for all repos in an organization from a YAML file.

This action uses the GitHub CLI to read values from repo-properties.yaml and update repos in the organization. This can be useful for easily maintaining a single source of truth and a git-based history of updates to the custom properties of the organization.


🚀 Getting Started

  1. Add this GitHub Action to your workflow.
  2. Run the workflow. The file repo-properties.yaml will automatically be parsed and all appropriate repo values will be updated.

Fine Grained Token Requirements

To run the action within your GitHub CI/CD pipeline you will need to create a fine-grained token with the following permissions:

Organization Permissions

  • Read and Write access to repository custom properties

Additional Information


📦 Inputs

Name Description Required Default
token GitHub Personal Access Token (Fine-Grained with: Repository custom properties Read and Write scope)
repo-properties.yaml File should be located in the root-level directory. repo-properties.yaml
sleep-length Time (seconds) to sleep between API calls - 1 second

🛠 Usage

jobs:
  update-schema:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: PandasWhoCode/update-custom-properties@v1
        with:
          token: ${{ secrets.GH_CUSTOM_PROPERTIES_TOKEN }}
          sleep-length: '5'

Example repo-properties.yaml

repo-properties.yaml:

org: PandasWhoCode
repositories:
  - name: my-example-repo
    last-date-modified: ""
    initial-ci-review-by-team: "pandas"
    initial-ci-review-date: "2025-04-07"
    initial-security-review-by-team: "admins"
    initial-security-review-date: "2025-04-15"
    last-security-review-by-team: "reviewers"
    last-security-review-date: "2025-05-01"

👤 Author

Andrew Brandt

PandasWhoCode

andrew.brandt@pandaswhocode.com


About

Github Action to Update Custom Properties in a Workflow

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •