add pull image to trivy_image_scan.yml
This commit is contained in:
@@ -22,16 +22,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: aquasec/trivy:latest
|
container: aquasec/trivy:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Login to Gitea
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: ${{ env.registry_gitea }}
|
|
||||||
username: ${{ env.user }}
|
|
||||||
password: ${{ secrets.DOCKER_PULL_TOKEN }}
|
|
||||||
|
|
||||||
- name: Pull image
|
- name: Pull image
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ env.registry_gitea }}/${{ env.user }}/${{ env.image_name_gitea }}:${{ env.image_tag }}
|
echo "${{ secrets.DOCKER_PULL_TOKEN }}" | docker login ${{ env.registry_gitea }} -u ${{ env.user }} --password-stdin \
|
||||||
|
&& docker pull ${{ env.registry_gitea }}/${{ env.user }}/${{ env.image_name_gitea }}:${{ env.image_tag }}
|
||||||
|
|
||||||
- name: Scan image with trivy
|
- name: Scan image with trivy
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user