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
Apr 20, 2025
Apr 3, 2025
Apr 20, 2025
Apr 20, 2025
Apr 3, 2025
Apr 23, 2025
Apr 16, 2025
Apr 16, 2025

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) βœ… Yes β€”
repo-properties.yaml File should be located in the root-level directory. βœ… Yes repo-properties.yaml

πŸ›  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 }}

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

[email protected]