Add Runtime as Custom Property to Repositories #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |