From e9e31cf4e1c360b9bad939bc1086a02702979056 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 7 Jun 2024 19:59:44 +0200 Subject: [PATCH] workflows: workflows migration --- .../add-maintainer-custom-property.yml | 17 --------------- .github/workflows/check-new-repos.yml | 16 -------------- .github/workflows/dependabot-auto-dismiss.yml | 16 -------------- .github/workflows/dependabot-nudge.yml | 17 --------------- .github/workflows/mirror.yml | 21 ------------------- .github/workflows/older-than-2y.yml | 16 -------------- .github/workflows/renovate-sanity-check.yml | 17 --------------- 7 files changed, 120 deletions(-) delete mode 100644 .github/workflows/add-maintainer-custom-property.yml delete mode 100644 .github/workflows/check-new-repos.yml delete mode 100644 .github/workflows/dependabot-auto-dismiss.yml delete mode 100644 .github/workflows/dependabot-nudge.yml delete mode 100644 .github/workflows/mirror.yml delete mode 100644 .github/workflows/older-than-2y.yml delete mode 100644 .github/workflows/renovate-sanity-check.yml diff --git a/.github/workflows/add-maintainer-custom-property.yml b/.github/workflows/add-maintainer-custom-property.yml deleted file mode 100644 index c3624dbd..00000000 --- a/.github/workflows/add-maintainer-custom-property.yml +++ /dev/null @@ -1,17 +0,0 @@ -# action that runs monthly and add maintainer as a custom property -# to all repositories in this organization -name: Add Maintainer as Custom Property to Repositories -on: - schedule: - - cron: '0 0 27 * *' - workflow_dispatch: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: brave/security-action/actions/add-maintainer-custom-property@main - with: - ignore_maintainers: brave-builds,brave-browser-releases,brave-support-admin - debug: false - github_token: ${{ secrets.CUSTOM_PROPERTY_MANAGER_GITHUB_TOKEN }} - slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/check-new-repos.yml b/.github/workflows/check-new-repos.yml deleted file mode 100644 index a526e0a8..00000000 --- a/.github/workflows/check-new-repos.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Check New Repos -on: - schedule: - # nightly (0th hour 0th minute of every day) - - cron: '0 0 * * *' - workflow_dispatch: -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: check new repos - uses: brave/security-action/actions/check-new-repos@main - with: - github_token: ${{ secrets.ORG_READ_GITHUB_TOKEN }} - slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }} - debug: false \ No newline at end of file diff --git a/.github/workflows/dependabot-auto-dismiss.yml b/.github/workflows/dependabot-auto-dismiss.yml deleted file mode 100644 index e001d4e9..00000000 --- a/.github/workflows/dependabot-auto-dismiss.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Weekly Dependabot Auto Dismiss -on: - schedule: - # Run at 24:00 UTC every Monday - - cron: "0 0 * * 1" - workflow_dispatch: -jobs: - run: - runs-on: ubuntu-latest - steps: - - name: dependabot auto dismiss - uses: brave/security-action/actions/dependabot-auto-dismiss@main - with: - github_token: ${{ secrets.DEPENDABOT_AUTO_DISMISS_GITHUB_TOKEN }} - slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }} - debug: false \ No newline at end of file diff --git a/.github/workflows/dependabot-nudge.yml b/.github/workflows/dependabot-nudge.yml deleted file mode 100644 index 23469a68..00000000 --- a/.github/workflows/dependabot-nudge.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Weekly Dependabot Nudge -on: - schedule: - # Run at 9am UTC every Monday - - cron: "0 9 * * 1" - workflow_dispatch: -jobs: - run: - runs-on: ubuntu-latest - steps: - - name: dependabot nudge - uses: brave/security-action/actions/dependabot-nudge@main - with: - github_token: ${{ secrets.DEPENDABOT_NUDGE_GITHUB_TOKEN }} - slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }} - gh_to_slack_user_map: ${{ secrets.GH_TO_SLACK_USER_MAP }} - debug: false \ No newline at end of file diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml deleted file mode 100644 index 6ef5a91d..00000000 --- a/.github/workflows/mirror.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Mirror Repo -on: - schedule: - # nightly (0th hour 0th minute of every day) - - cron: '0 0 * * *' - workflow_dispatch: -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Mirror - shell: bash - run: | - if [[ "$GITHUB_REPOSITORY_OWNER" != "brave" ]]; then - git clone "https://github.com/brave/${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}" - cd ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/} - git remote add github "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" - git push -fu github main - fi - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/older-than-2y.yml b/.github/workflows/older-than-2y.yml deleted file mode 100644 index c712787a..00000000 --- a/.github/workflows/older-than-2y.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Older Than 2 Years Informer -on: - schedule: - # Every month, first day of the month - - cron: '0 0 1 * *' - workflow_dispatch: -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: older than 2 years informer - uses: brave/security-action/actions/older-than-2y@main - with: - github_token: ${{ secrets.ORG_READ_GITHUB_TOKEN }} - slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }} - debug: false \ No newline at end of file diff --git a/.github/workflows/renovate-sanity-check.yml b/.github/workflows/renovate-sanity-check.yml deleted file mode 100644 index 1bb30762..00000000 --- a/.github/workflows/renovate-sanity-check.yml +++ /dev/null @@ -1,17 +0,0 @@ -# action that runs monthly and check if all repositories in the organization are following the renovate central configuration -# to all repositories in this organization -name: Renovate Sanity Check -on: - schedule: - - cron: '0 0 15 * *' - workflow_dispatch: -jobs: - run: - runs-on: ubuntu-latest - steps: - - name: Renovate Sanity Check - uses: brave/security-action/actions/renovate-sanity-check@main - with: - github_token: ${{ secrets.CUSTOM_PROPERTY_MANAGER_GITHUB_TOKEN }} - slack_token: ${{ secrets.HOTSPOTS_SLACK_TOKEN }} - debug: false \ No newline at end of file