Update GitHub Actions and container scanning #771
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: "Code analyzers" | |
| permissions: {} | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| go: | |
| name: "Run golang Staticcheck" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Load openvds image | |
| uses: "./.github/actions/load_openvds_image" | |
| - name: Run check | |
| run: | | |
| DOCKER_BUILDKIT=1 docker build \ | |
| -f Dockerfile \ | |
| --build-arg OPENVDS_IMAGE=${{ env.OPENVDS_IMAGE_TAG }} \ | |
| --target static_analyzer \ | |
| . |