Skip to content

Commit

Permalink
updated github actions (#53)
Browse files Browse the repository at this point in the history
* updated github actions

* updated all gh actions releases
  • Loading branch information
zachreborn authored Oct 25, 2024
1 parent 52fe0ca commit 269e7c2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: HashiCorp - Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

Expand All @@ -30,7 +30,7 @@ jobs:
run: terraform fmt -recursive

- name: Build terraform docs
uses: terraform-docs/gh-actions@main
uses: terraform-docs/gh-actions@v1
with:
config-file: ./modules/.terraform-docs.yml
find-dir: ./modules
Expand All @@ -45,6 +45,6 @@ jobs:
run: sudo chown runner:docker -R .git

- name: Git stage all, commit, and push
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Continuous Integration - terraform fmt and terraform-docs
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
4 changes: 2 additions & 2 deletions .github/workflows/scheduled_tfsec_security_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Clone repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run tfsec scan with SARIF output
uses: aquasecurity/tfsec-sarif-action@master
Expand All @@ -26,7 +26,7 @@ jobs:
full_repo_scan: true

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: tfsec.sarif
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

steps:
- name: HashiCorp - Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Terraform version
id: version
Expand All @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run tfsec and write pull request comments
uses: aquasecurity/tfsec-pr-commenter-action@main
Expand All @@ -49,19 +49,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

# Run Linter against code base
- name: Run linter against all changed files
uses: github/super-linter/slim@v4
uses: super-linter/super-linter@v7
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MULTI_STATUS: true
VALIDATE_MARKDOWN: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_TERRAFORM_TERRASCAN: false
Expand Down

0 comments on commit 269e7c2

Please sign in to comment.