mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 05:08:48 +01:00
Refactor CI workflow to integrate Trivy vulnerability scanning directly into the deployment job, removing redundant security scan job.
This commit is contained in:
parent
19c362d0f3
commit
3c3e93388e
1 changed files with 3 additions and 25 deletions
28
.github/workflows/e2e-testing.yml
vendored
28
.github/workflows/e2e-testing.yml
vendored
|
|
@ -35,17 +35,17 @@ jobs:
|
|||
echo "WEKAN_IMAGE_TAG=$TAG" >> $GITHUB_ENV
|
||||
|
||||
- name: Install Trivy
|
||||
run: |
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y wget
|
||||
wget https://github.com/aquasecurity/trivy/releases/latest/download/trivy_0.50.0_Linux-64bit.deb
|
||||
sudo dpkg -i trivy_0.50.0_Linux-64bit.deb
|
||||
|
||||
- name: Scan Wekan Docker image for vulnerabilities
|
||||
env:
|
||||
env:
|
||||
WEKAN_IMAGE_TAG: ${{ env.WEKAN_IMAGE_TAG }}
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
run: |
|
||||
run: |
|
||||
docker pull $DOCKERHUB_USERNAME/wekan:$WEKAN_IMAGE_TAG
|
||||
trivy image $DOCKERHUB_USERNAME/wekan:$WEKAN_IMAGE_TAG || true
|
||||
|
||||
|
|
@ -98,28 +98,6 @@ jobs:
|
|||
sudo docker compose pull
|
||||
sudo docker compose up -d
|
||||
|
||||
security-scan:
|
||||
needs: deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Trivy
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y wget
|
||||
wget https://github.com/aquasecurity/trivy/releases/latest/download/trivy_0.50.0_Linux-64bit.deb
|
||||
sudo dpkg -i trivy_0.50.0_Linux-64bit.deb
|
||||
|
||||
- name: Scan Wekan Docker image for vulnerabilities
|
||||
env:
|
||||
WEKAN_IMAGE_TAG: ${{ needs.deploy.outputs.wekan_image_tag }}
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
run: |
|
||||
docker pull $DOCKERHUB_USERNAME/wekan:$WEKAN_IMAGE_TAG
|
||||
trivy image $DOCKERHUB_USERNAME/wekan:$WEKAN_IMAGE_TAG || true
|
||||
|
||||
API-tests:
|
||||
needs: deploy
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue