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

chore: fixed Pinned-Dependencies for actions #3518

Merged
merged 4 commits into from
Sep 18, 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
4 changes: 2 additions & 2 deletions .github/workflows/check-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 1

- name: Check large files
uses: actionsdesk/lfs-warning@v3.3
uses: actionsdesk/lfs-warning@e5f9a4c21f4bee104db7c0f23954dde59e5df909
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
submodules: recursive

- name: Install Go
uses: actions/setup-go@v5.0.2
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: go.mod

Expand All @@ -44,7 +44,7 @@ jobs:
sudo make test-coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.txt
Expand All @@ -57,31 +57,31 @@ jobs:
needs: [test]
steps:
- name: Check out code
uses: actions/checkout@v4.1.7
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v5.0.2
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: go.mod

- name: Setup QEMU
uses: docker/setup-qemu-action@v3.2.0
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db

- name: Cache Docker layers
uses: actions/cache@v4.0.2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Build Scheduler Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/scheduler/Dockerfile
Expand All @@ -91,7 +91,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Build Manager Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/manager/Dockerfile
Expand All @@ -101,7 +101,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Build Dfdaemon Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/dfdaemon/Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

- name: Initialize CodeQL
uses: github/codeql-action/init@v3.26.2
uses: github/codeql-action/init@429e1977040da7a23b6822b13c129cd1ba93dbb2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3.26.2
uses: github/codeql-action/autobuild@429e1977040da7a23b6822b13c129cd1ba93dbb2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3.26.2
uses: github/codeql-action/analyze@429e1977040da7a23b6822b13c129cd1ba93dbb2
22 changes: 11 additions & 11 deletions .github/workflows/compatibility-e2e-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ jobs:
swap-storage: true

- name: Checkout code
uses: actions/checkout@v4.1.7
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
submodules: recursive

- name: Install Go
uses: actions/setup-go@v5.0.2
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: go.mod

Expand All @@ -72,21 +72,21 @@ jobs:
go mod vendor

- name: Setup buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db
id: buildx
with:
install: true

- name: Cache Docker layers
uses: actions/cache@v4.0.2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Build Scheduler Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/scheduler/Dockerfile
Expand All @@ -97,7 +97,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Build Manager Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/manager/Dockerfile
Expand All @@ -108,7 +108,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Build Dfdaemon Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/dfdaemon/Dockerfile
Expand All @@ -119,7 +119,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Build No Content Length Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: test/tools/no-content-length/
file: test/tools/no-content-length/Dockerfile
Expand All @@ -130,7 +130,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Setup Kind
uses: helm/kind-action@v1.10.0
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde
with:
version: ${{ env.KIND_VERSION }}
config: ${{ env.KIND_CONFIG_PATH }}
Expand Down Expand Up @@ -171,14 +171,14 @@ jobs:
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.txt
flags: ${{ matrix }}-compatibility-e2etests

- name: Upload Logs
uses: actions/upload-artifact@v4.3.6
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
if: always()
with:
name: ${{ matrix.module }}-compatibility-e2e-tests-logs
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/compatibility-e2e-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ jobs:
swap-storage: true

- name: Checkout code
uses: actions/checkout@v4.1.7
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
submodules: recursive
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v5.0.2
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: go.mod

Expand All @@ -72,13 +72,13 @@ jobs:
mkdir -p /tmp/artifact

- name: Setup buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db
id: buildx
with:
install: true

- name: Cache Docker layers
uses: actions/cache@v4.0.2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -95,7 +95,7 @@ jobs:
docker tag dragonflyoss/dfinit:$CLIENT_TAG dragonflyoss/dfinit:latest

- name: Build Scheduler Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/scheduler/Dockerfile
Expand All @@ -106,7 +106,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Build Manager Image
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
file: build/images/manager/Dockerfile
Expand All @@ -117,7 +117,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Setup Kind
uses: helm/kind-action@v1.10.0
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde
with:
version: ${{ env.KIND_VERSION }}
config: ${{ env.KIND_CONFIG_PATH }}
Expand Down Expand Up @@ -147,14 +147,14 @@ jobs:
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.txt
flags: e2etests

- name: Upload Logs
uses: actions/upload-artifact@v4.3.6
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
if: always()
with:
name: ${{ matrix.module }}-e2e-tests-logs
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
timeout-minutes: 120
steps:
- name: Check out code
uses: actions/checkout@v4.1.7
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
submodules: recursive

Expand All @@ -52,13 +52,13 @@ jobs:
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV

- name: Setup QEMU
uses: docker/setup-qemu-action@v3.2.0
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db

- name: Cache Docker layers
uses: actions/cache@v4.0.2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -69,21 +69,21 @@ jobs:
uses: sigstore/cosign-installer@v3

- name: Login Docker Hub
uses: docker/login-action@v3.3.0
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3.3.0
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to Registry
uses: docker/build-push-action@v6.7.0
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
platforms: ${{ matrix.platforms }}
Expand Down
Loading
Loading