Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: tfcheck dependency update with versionEvaluate #115

Merged
merged 5 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/auto_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ on:

jobs:
static-checks:
name: Check the status of static checks
name: Check Static Analysis
runs-on: ubuntu-latest
strategy:
matrix:
tf-checks: ["tf-lint / tflint", "tfsec / tfsec sarif report", "${{ inputs.tfcheck }}"]
if: github.actor == 'dependabot[bot]'
steps:
- name: Wait for "${{ matrix.tf-checks }}" to succeed
- name: Wait for "${{ matrix.tf-checks }}" to Succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -39,13 +39,13 @@ jobs:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Approve a PR for Github Bot
- name: Approve PR via GitHub Bot
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Approve a PR for Anmol nagpal
- name: Approve PR via Anmol Nagpal
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand All @@ -55,8 +55,7 @@ jobs:
runs-on: ubuntu-latest
needs: autoapprove
steps:
- id: automerge
name: automerge
- name: Automerge
uses: pascalgn/[email protected]
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
format:
name: Check code format
runs-on: ubuntu-latest
needs: versionExtract
needs: [versionExtract, versionEvaluate]

steps:
# - Checkout the repository to the GitHub Actions runner
Expand Down