ci: pin every action to a commit SHA (#1919)
This commit is contained in:
3 files changed
+22
-22
No files matched your search
@@ -20,7 +20,7 @@ jobs:
|
|||||||
sha: ${{ steps.release_tag.outputs.sha }}
|
sha: ${{ steps.release_tag.outputs.sha }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
|
|
||||||
- name: Resolve the release
|
- name: Resolve the release
|
||||||
id: release_tag
|
id: release_tag
|
||||||
@@ -33,22 +33,22 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1
|
||||||
with:
|
with:
|
||||||
package_json_file: ui/package.json
|
package_json_file: ui/package.json
|
||||||
|
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
|
||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
run: tar -cf release-binaries.tar dist
|
run: tar -cf release-binaries.tar dist
|
||||||
|
|
||||||
- name: Upload the release binaries
|
- name: Upload the release binaries
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
||||||
with:
|
with:
|
||||||
name: release-binaries
|
name: release-binaries
|
||||||
path: release-binaries.tar
|
path: release-binaries.tar
|
||||||
@@ -102,10 +102,10 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
|
||||||
with:
|
with:
|
||||||
# One named builder that is never removed, so the Dockerfiles' cache
|
# One named builder that is never removed, so the Dockerfiles' cache
|
||||||
# mounts are still there on the next run. Removing it at the end of
|
# mounts are still there on the next run. Removing it at the end of
|
||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login git.catlow.cloud -u "${{ github.actor }}" --password-stdin
|
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login git.catlow.cloud -u "${{ github.actor }}" --password-stdin
|
||||||
|
|
||||||
- name: Build and push archied
|
- name: Build and push archied
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile.archied
|
file: Dockerfile.archied
|
||||||
@@ -138,10 +138,10 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
|
||||||
with:
|
with:
|
||||||
# One named builder that is never removed, so the Dockerfiles' cache
|
# One named builder that is never removed, so the Dockerfiles' cache
|
||||||
# mounts are still there on the next run. Removing it at the end of
|
# mounts are still there on the next run. Removing it at the end of
|
||||||
@@ -154,7 +154,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push archie-agent
|
- name: Build and push archie-agent
|
||||||
id: agent
|
id: agent
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
@@ -172,13 +172,13 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# The gate built these from the tree it checked; nothing is compiled here.
|
# The gate built these from the tree it checked; nothing is compiled here.
|
||||||
- name: Download the release binaries
|
- name: Download the release binaries
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
|
||||||
with:
|
with:
|
||||||
name: release-binaries
|
name: release-binaries
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ jobs:
|
|||||||
echo "name=$name" >> "$GITHUB_OUTPUT"
|
echo "name=$name" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Upload distribution zip
|
- name: Upload distribution zip
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.zip.outputs.name }}
|
name: ${{ steps.zip.outputs.name }}
|
||||||
path: ${{ steps.zip.outputs.name }}.zip
|
path: ${{ steps.zip.outputs.name }}.zip
|
||||||
|
|||||||
@@ -14,22 +14,22 @@ jobs:
|
|||||||
check:
|
check:
|
||||||
runs-on: archie-quality
|
runs-on: archie-quality
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Verify unprivileged user namespaces
|
- name: Verify unprivileged user namespaces
|
||||||
run: unshare --user --map-root-user --net true
|
run: unshare --user --map-root-user --net true
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1
|
||||||
with:
|
with:
|
||||||
package_json_file: ui/package.json
|
package_json_file: ui/package.json
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
|
||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
go install mvdan.cc/gofumpt@v0.11.0
|
go install mvdan.cc/gofumpt@v0.11.0
|
||||||
bash tools/proto.sh install
|
bash tools/proto.sh install
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/golangci-lint
|
path: ~/.cache/golangci-lint
|
||||||
key: golangci-lint-${{ hashFiles('.golangci-version', '.golangci.yml', 'go.sum') }}-${{ github.sha }}
|
key: golangci-lint-${{ hashFiles('.golangci-version', '.golangci.yml', 'go.sum') }}-${{ github.sha }}
|
||||||
|
|||||||
@@ -28,14 +28,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.DEPLOY_TOKEN }}
|
token: ${{ secrets.DEPLOY_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
Reference in new issue
Block a user