Skip to content

Commit

Permalink
Pin dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Platform Engineering Bot <[email protected]>
  • Loading branch information
platform-engineering-bot committed Feb 7, 2024
1 parent 60d095c commit dcdf001
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.go_version }}
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3
with:
version: v1.55.2

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.go_version }}

Expand All @@ -41,7 +41,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up limgo
uses: GoTestTools/[email protected]
uses: GoTestTools/limgo-action@fe8392ce7f182c119ae7c27faa6d63170825e689 # v1.0.1
with:
version: "v1.0.0"
install-only: true
Expand All @@ -58,7 +58,7 @@ jobs:
go test -coverprofile=test.cov -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: upload test log
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
if: always()
with:
name: test-log
Expand All @@ -72,7 +72,7 @@ jobs:
cat limgo_cov.md >> $GITHUB_STEP_SUMMARY
- name: upload coverage results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
name: coverage
path: limgo_cov.md
Expand All @@ -90,27 +90,27 @@ jobs:
if: startsWith(github.event.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.go_version }}

- name: Setup go mockgen
run: go install github.com/golang/mock/[email protected]

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5
with:
distribution: goreleaser
version: latest
Expand All @@ -119,7 +119,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
name: binaries
path: dist
14 changes: 7 additions & 7 deletions .github/workflows/reusable_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
echo "QUAY_IMG_EXP=90d" >> $GITHUB_ENV
- name: Checkout this project
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3

- name: arcaflow-container-toolkit-action
uses: arcalot/[email protected]
uses: arcalot/arcaflow-container-toolkit-action@84f91c72106b99838de8e730490ec6b0c8b43b79 # v1.3.0
with:
image_name: ${{ inputs.image_name }}
image_tag: ${{ inputs.image_tag }}
Expand All @@ -81,19 +81,19 @@ jobs:

- name: Set up Docker Buildx for multi-arch
if: ${{ inputs.multi_arch }}
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3

- name: Login to Quay for multi-arch
if: ${{ inputs.multi_arch }}
uses: docker/login-action@v3
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Build and push multi-arch image for release
if: github.event_name == 'release' && inputs.multi_arch == true
uses: docker/build-push-action@v5
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
with:
context: .
platforms: linux/amd64,linux/arm64
Expand All @@ -103,7 +103,7 @@ jobs:

- name: Build and push multi-arch image
if: github.event_name != 'release' && inputs.multi_arch == true
uses: docker/build-push-action@v5
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.54.2
rev: v1.55.2
hooks:
- id: golangci-lint
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Build stage
FROM golang:1.21@sha256:7b575fe0d9c2e01553b04d9de8ffea6d35ca3ab3380d2a8db2acc8f0f1519a53 AS builder
FROM golang:1.22@sha256:ef61a20960397f4d44b0e729298bf02327ca94f1519239ddc6d91689615b1367 AS builder
COPY . /build
WORKDIR /build
RUN CGO_ENABLED=0 go build ./act.go

# Main stage
FROM python:3.11.5-slim-bullseye@sha256:9f35f3a6420693c209c11bba63dcf103d88e47ebe0b205336b5168c122967edf
FROM python:3.12.1-slim-bullseye@sha256:2098ae1a93b47ea9ea4ea66a6ff4659deb770c45e35244a7a5db73ea4e93d2a5
RUN python -m ensurepip
RUN python -m pip install --user --upgrade flake8

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.5-slim-bullseye@sha256:9f35f3a6420693c209c11bba63dcf103d88e47ebe0b205336b5168c122967edf
FROM python:3.12.1-slim-bullseye@sha256:2098ae1a93b47ea9ea4ea66a6ff4659deb770c45e35244a7a5db73ea4e93d2a5

RUN python -m pip install --user --upgrade flake8

Expand Down

0 comments on commit dcdf001

Please sign in to comment.