diff --git a/.github/workflows/add-runtime-custom-property.yml b/.github/workflows/add-runtime-custom-property.yml new file mode 100644 index 0000000..300119b --- /dev/null +++ b/.github/workflows/add-runtime-custom-property.yml @@ -0,0 +1,20 @@ +# 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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + 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 }} \ No newline at end of file