fix: make local-exec cross-platform #7
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: Repo Hygiene | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| gitleaks: | |
| name: Gitleaks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Install gitleaks | |
| run: | | |
| curl -sSL -o "$RUNNER_TEMP/gitleaks.tar.gz" \ | |
| "https://github.com/gitleaks/gitleaks/releases/download/v8.24.3/gitleaks_8.24.3_linux_x64.tar.gz" | |
| mkdir -p "$RUNNER_TEMP/gitleaks-bin" | |
| tar -xzf "$RUNNER_TEMP/gitleaks.tar.gz" -C "$RUNNER_TEMP/gitleaks-bin" | |
| echo "$RUNNER_TEMP/gitleaks-bin" >> "$GITHUB_PATH" | |
| - name: Run gitleaks | |
| run: gitleaks detect --no-banner --source . | |
| repo-checks: | |
| name: Repo Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Set up OpenTofu | |
| uses: opentofu/setup-opentofu@fc711fa910b93cba0f3fbecaafc9f42fd0c411cb # v2.0.0 | |
| - name: Check OpenTofu formatting | |
| run: tofu fmt -check | |
| - name: Check validator CLI help | |
| run: python3 scripts/validate_azurefox_lab.py --help |