Skip to content

Commit

Permalink
feat: Add an option to disable auto-upgrade [DEVOP-5736]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagart-cactus committed Jan 22, 2025
1 parent fda9465 commit 02019e6
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 91 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/README.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/checkov.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/repository-checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "repository-checkov"
permissions: read-all

on:
pull_request:
branches:
- main

jobs:
repository-checkov:
name: repository-checkov
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"
token: ${{ secrets.ENGINEERING_GITHUB_PERSONAL_ACCESS_TOKEN }}
- name: Run Checkov
id: checkov
uses: bridgecrewio/checkov-action@master
with:
config_file: ".checkov.yaml"
46 changes: 46 additions & 0 deletions .github/workflows/repository-terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: "repository-terraform"
permissions:
actions: read
pull-requests: write

on:
pull_request:
branches:
- main
push:
branches:
- main

env:
tf_version: "latest"
tf_working_dir: "."
TF_VAR_google_credentials: ${{ secrets.GOOGLE_CREDENTIALS }}
TF_WORKSPACE: ${{ github.base_ref }}

jobs:
repository-terraform:
name: repository-terraform
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"
token: ${{ secrets.ENGINEERING_GITHUB_PERSONAL_ACCESS_TOKEN }}
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Terraform Format
id: fmt
run: terraform fmt
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.ENGINEERING_GITHUB_PERSONAL_ACCESS_TOKEN }}
- name: Terraform Init
id: init
run: terraform init
- name: Terraform Validate
id: validate
run: terraform validate -no-color
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
- main

env:
TERRATEST_GOOGLE_CREDENTIALS_STORAGE: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS_STORAGE }}
TERRATEST_GOOGLE_PROJECT_STORAGE: ${{ secrets.TERRATEST_GOOGLE_PROJECT_STORAGE }}
TERRATEST_GOOGLE_CREDENTIALS_NETWORK: ${{TERRATEST_GOOGLE_CREDENTIALS_NETWORK}}

jobs:
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/semantic-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
# yamllint disable rule:line-length
# Use template from /~https://github.com/honestbank/workflows/tree/main/examples/repository-workflows

# Use this workflow for public repos, since public repos cannot access our internal
# workflows repo.
---
name: public-semantic-pr
permissions:
contents: write
pull-requests: write
name: "Semantic Pull Request"
permissions: read-all

on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize

jobs:
public-semantic-pr:
name: public-semantic-pr
main:
name: "Semantic Pull Request"
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v5.0.2
name: Semantic Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 changes: 0 additions & 33 deletions .github/workflows/terraform.yaml

This file was deleted.

0 comments on commit 02019e6

Please sign in to comment.