Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve vulnerabiltiy scanning #71

Merged
merged 3 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/scheduled-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@ jobs:
permissions:
contents: read
security-events: write
name: Scheduled scan for vulnerabilities
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- latest
- v5
package:
- launchpad
- launchpad-gs64-3.7.1
name: Scheduled scan for vulnerabilities ${{ matrix.package }}-${{ matrix.version }}
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ghcr.io/${{ github.repository_owner }}/launchpad:latest
image-ref: ghcr.io/${{ github.repository_owner }}/${{ matrix.package }}:${{ matrix.version}}
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
Expand Down
8 changes: 4 additions & 4 deletions docker/pharo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM ghcr.io/ba-st/pharo:v11.0.0
COPY --chown=pharo:users ./launchpad* ./
USER root
RUN set -eu; \
apt-get update; \
apt-get upgrade; \
apt-get install --assume-yes --no-install-recommends netcat-openbsd; \
apt-get clean; \
apt update; \
apt upgrade --assume-yes; \
apt install --assume-yes --no-install-recommends netcat-openbsd; \
apt clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
ln -s /opt/pharo/launchpad /usr/local/bin/launchpad; \
ln -s /opt/pharo/launchpad-list /usr/local/bin/launchpad-list; \
Expand Down
Loading