Add Runtime as Custom Property to Repositories #13
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
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 }} |