Skip to content

Add Runtime as Custom Property to Repositories #11

Add Runtime as Custom Property to Repositories

Add Runtime as Custom Property to Repositories #11

# action that runs monthly and add runtime as a custom property
# to all repositories in this organization
name: Add Runtime as Custom Property to Repositories
on:
schedule:
- cron: '0 0 22 * *'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: ${{ secrets.RUNTIME_REPOSITORY }}
token: ${{ secrets.RUNTIME_REPO_READ_TOKEN }}
- uses: brave/security-action/actions/add-runtime-custom-property@main
with:
github_token: ${{ secrets.CUSTOM_PROPERTY_MANAGER_GITHUB_TOKEN }}
static_repositories: ${{ secrets.STATIC_WEBSITE_REPOSITORIES }}
runtime_directory: ${{ github.workspace }}