diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 253bcb7..365eeec 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,8 @@ updates: directory: / schedule: interval: daily + + - package-ecosystem: docker + directory: / + schedule: + interval: daily diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index dd7748c..4b4f150 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -17,6 +17,9 @@ env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} +permissions: + contents: read + jobs: build-and-push-image: runs-on: ubuntu-latest @@ -25,8 +28,13 @@ jobs: packages: write steps: + - name: Harden Runner + uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0 + with: + egress-policy: audit + - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 diff --git a/Dockerfile b/Dockerfile index 0e6fe1e..0d2bb77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.18 +FROM alpine:3.18@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1 LABEL maintainer="Jose Manuel Requena Plens "