Skip to content

Commit

Permalink
ci: update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
geloman committed Sep 23, 2024
1 parent 313804e commit b62a6f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: gitleaks
name: Scan Secret Leaks
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: "0 10 * * *" # run once a day at 6 AM (philippine standard time)
jobs:
scan:
name: gitleaks
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/terraform-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

- name: Terraform Lint
run: terraform fmt -check

- name: Terraform Init
run: terraform init

Expand All @@ -37,3 +34,5 @@ jobs:

- name: Terraform Apply
run: terraform apply -auto-approve
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/terraform-destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

- name: Terraform Lint
run: terraform fmt -check

- name: Terraform Init
run: terraform init

Expand All @@ -27,3 +24,5 @@ jobs:

- name: Terraform Destroy
run: terraform destroy -auto-approve
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}

0 comments on commit b62a6f2

Please sign in to comment.