Checkout repository in GitHub workflows (#61) #176
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker image | |
id: docker_build | |
uses: docker/build-push-action@v6 | |
with: | |
load: true | |
push: false | |
tags: joschi/tg-archive:${{ github.sha }} | |
- name: Scan image | |
uses: anchore/scan-action@v5 | |
with: | |
image: joschi/tg-archive:${{ github.sha }} | |
fail-build: false | |
- name: Upload Anchore Scan Report | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: results.sarif |