use a standard python image instead of the uv one (#168) #61
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: Deploy main branch | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| jobs: | |
| build-and-push-development-image: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| packages: write | |
| attestations: write | |
| uses: ./.github/workflows/build-and-push-to-ghcr.yml | |
| with: | |
| image_tags: development | |
| secrets: inherit | |
| verify-development-docker-image: | |
| needs: ["build-and-push-development-image"] | |
| env: | |
| DOCKER_IMAGE: ghcr.io/uktrade/github-standards | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout current repo | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| with: | |
| ref: main | |
| - name: Security scanning using the latest released docker image | |
| run: | | |
| tag=development | |
| docker run --user $(id -u):$(id -g) -e FORCE_HOOK_CHECKS=0 --rm -v .:/src -w /src \ | |
| ${{ env.DOCKER_IMAGE }}:$tag \ | |
| run_scan \ | |
| --verbose \ | |
| --github-action \ | |
| /src |