diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 1664bbb..db1b5f6 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -12,9 +12,9 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 - name: setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4 with: python-version: "3.8" - name: install @@ -31,9 +31,9 @@ jobs: needs: test if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 - name: setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4 with: python-version: "3.8" - name: install @@ -44,12 +44,12 @@ jobs: - name: build package run: python setup.py bdist_wheel - name: publish package - uses: pypa/gh-action-pypi-publish@v1.4.2 + uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} - name: create Release - uses: actions/create-release@v1 + uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -62,9 +62,9 @@ jobs: needs: test name: Build and push Docker image steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2 with: registry: ghcr.io username: ${{ github.repository_owner }} diff --git a/Dockerfile b/Dockerfile index eceee5c..0164d3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8-alpine +FROM python:3.11-alpine@sha256:603975e62d85aa07578034d3d10ffa1983b7618a6abb6371cf51941be6b8842c LABEL org.opencontainers.image.source https://github.com/brennerm/aws-quota-checker WORKDIR /app ADD setup.py /app