From 0f44140ffe7e08b45374cdee5178bd38bd2894ec Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 14 Jun 2024 15:57:36 +0200 Subject: [PATCH] New workflow: add-runtime-custom-property --- .../workflows/add-runtime-custom-property.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/add-runtime-custom-property.yml 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