From c969fd4524b78cee980b39f27bc9729886739803 Mon Sep 17 00:00:00 2001 From: "Erik Osterman (CEO @ Cloud Posse)" Date: Fri, 19 Jan 2024 10:49:52 -0600 Subject: [PATCH] Remove unused workflows (#22) * remove unused workflows * change token for validate codeowners * change formatting --- .github/workflows/auto-context.yml | 13 ---------- .github/workflows/auto-format.yml | 31 ----------------------- .github/workflows/ci-terraform.yml | 28 -------------------- .github/workflows/validate-codeowners.yml | 6 ++--- 4 files changed, 3 insertions(+), 75 deletions(-) delete mode 100644 .github/workflows/auto-context.yml delete mode 100644 .github/workflows/auto-format.yml delete mode 100644 .github/workflows/ci-terraform.yml diff --git a/.github/workflows/auto-context.yml b/.github/workflows/auto-context.yml deleted file mode 100644 index 232490e8..00000000 --- a/.github/workflows/auto-context.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: "auto-context" -on: - schedule: - # Update context.tf nightly (assuming your time zone is GMT-7) - - cron: '0 7 * * *' - -jobs: - auto-context: - runs-on: ubuntu-latest - steps: - - uses: cloudposse/github-action-terraform-auto-context@main - with: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/auto-format.yml b/.github/workflows/auto-format.yml deleted file mode 100644 index 698804c2..00000000 --- a/.github/workflows/auto-format.yml +++ /dev/null @@ -1,31 +0,0 @@ -#name: "auto-format" -#on: -# pull_request_target: -# types: [opened, synchronize] -# schedule: -# - cron: '0 7 * * *' -# workflow_dispatch: -# -#jobs: -# auto-format: -# # only run on pull requests so long as they don't come from forks -# if: ${{ !( (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.repository) ) }} -# runs-on: ubuntu-latest -# steps: -# - uses: cloudposse/github-action-auto-format@main -# with: -# format-task: readme -# workflow-token: ${{ secrets.TOKEN_WITH_WORKFLOWS_PERMISSION }} -# bot-name: cloudpossebot -# -# - uses: cloudposse/github-action-auto-format@main -# with: -# format-task: github_format -# workflow-token: ${{ secrets.TOKEN_WITH_WORKFLOWS_PERMISSION }} -# bot-name: cloudpossebot -# -# - uses: cloudposse/github-action-auto-format@main -# with: -# format-task: terraform_format -# workflow-token: ${{ secrets.TOKEN_WITH_WORKFLOWS_PERMISSION }} -# bot-name: cloudpossebot diff --git a/.github/workflows/ci-terraform.yml b/.github/workflows/ci-terraform.yml deleted file mode 100644 index eca33034..00000000 --- a/.github/workflows/ci-terraform.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: "ci-terraform" -on: - issue_comment: - types: [created] - pull_request_target: - types: [opened, synchronized, reopened] - -jobs: - ci-terraform: - # only run on pull requests so long as they don't come from forks - if: ${{ !( (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.repository) ) }} - runs-on: ubuntu-latest - steps: - - name: "Handle common commands and tests, including when triggered via chatops" - uses: cloudposse/github-action-ci-terraform@main - if: always() - with: - token: ${{ secrets.GITHUB_TOKEN }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }} - CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }} - DD_API_KEY: ${{ secrets.DD_API_KEY }} - DD_APP_KEY: ${{ secrets.DD_APP_KEY }} - OPSGENIE_API_KEY: ${{ secrets.OPSGENIE_API_KEY }} - SPOTINST_ACCOUNT: ${{ secrets.SPOTINST_ACCOUNT }} - SPOTINST_TOKEN: ${{ secrets.SPOTINST_TOKEN }} - TFE_TOKEN: ${{ secrets.TFE_TOKEN }} diff --git a/.github/workflows/validate-codeowners.yml b/.github/workflows/validate-codeowners.yml index 9107bbf4..c525699f 100644 --- a/.github/workflows/validate-codeowners.yml +++ b/.github/workflows/validate-codeowners.yml @@ -1,12 +1,12 @@ -name: "validate-codeowners" +name: "Validate Codeowners" on: pull_request_target: workflow_dispatch: jobs: - validate-codeowners: + lint: runs-on: ubuntu-latest steps: - uses: cloudposse/github-action-validate-codeowners@main with: - token: ${{ secrets.CODEOWNERS_VALIDATOR_TOKEN_PUBLIC }} + token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}