fix: Ensure that API key and secret are not shown in the Terrafom plan output #27
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Trivy | |
| on: pull_request | |
| jobs: | |
| aqua: | |
| name: Aqua scanner | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} | |
| - name: Run Aqua scanner | |
| uses: docker://aquasec/aqua-scanner | |
| with: | |
| args: trivy fs --scanners misconfig,secret . | |
| env: | |
| AQUA_KEY: ${{ secrets.AQUA_KEY }} | |
| AQUA_SECRET: ${{ secrets.AQUA_SECRET }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| TRIVY_RUN_AS_PLUGIN: 'aqua' |