mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-01-27 12:50:54 +03:00
feat: add Docker Hub authentication for Docker Scout
- Add optional Docker Hub login for enhanced vulnerability data - Use continue-on-error to make Docker Hub auth optional - Requires DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets for full functionality
This commit is contained in:
9
.github/workflows/docker-build.yml
vendored
9
.github/workflows/docker-build.yml
vendored
@@ -54,6 +54,15 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Login to Docker Hub for Docker Scout (optional - provides better vulnerability data)
|
||||||
|
# Add DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets to enable this
|
||||||
|
- name: Log into Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
# Extract version from tag if present
|
# Extract version from tag if present
|
||||||
- name: Extract version from tag
|
- name: Extract version from tag
|
||||||
id: tag_version
|
id: tag_version
|
||||||
|
|||||||
Reference in New Issue
Block a user