Skip to content

Commit 3be8317

Browse files
authored
Prepare Alpha Two (#260)
1 parent 1745b0c commit 3be8317

25 files changed

+653
-704
lines changed

.github/workflows/build-docker.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,26 @@ jobs:
3939

4040
steps:
4141
- name: Checkout
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
4343
with:
4444
submodules: recursive
4545

4646
- name: Login to GitHub container registry
47-
uses: docker/login-action@v3
47+
uses: docker/login-action@v4
4848
with:
4949
registry: ghcr.io
5050
username: ${{ github.actor }}
5151
password: ${{ secrets.GITHUB_TOKEN }}
5252

5353
- name: Set up Docker Buildx
54-
uses: docker/setup-buildx-action@v3
54+
uses: docker/setup-buildx-action@v4
5555
with:
5656
buildkitd-config-inline: |
5757
[registry."docker.io"]
5858
mirrors = ["dockerhub-proxy.teonite.net"]
5959
6060
- name: Build container
61-
uses: docker/build-push-action@v5
61+
uses: docker/build-push-action@v7
6262
with:
6363
context: .
6464
platforms: linux/${{ matrix.cpu }}
@@ -69,7 +69,7 @@ jobs:
6969
cache-to: type=gha,mode=max
7070

7171
- name: Scan image with Trivy
72-
uses: aquasecurity/trivy-action@0.34.1
72+
uses: aquasecurity/trivy-action@0.35.0
7373
with:
7474
image-ref: "${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }}"
7575
format: "table"
@@ -90,19 +90,19 @@ jobs:
9090

9191
steps:
9292
- name: Install Cosign
93-
uses: sigstore/cosign-installer@v3.9.2
93+
uses: sigstore/cosign-installer@v4.1.0
9494

9595
- name: Docker meta
9696
id: meta
97-
uses: docker/metadata-action@v5
97+
uses: docker/metadata-action@v6
9898
with:
9999
images: |
100100
${{ env.GHCR_REPO }}
101101
flavor: ${{ inputs.flavor }}
102102
tags: ${{ inputs.tags }}
103103

104104
- name: Login to GitHub container registry
105-
uses: docker/login-action@v3
105+
uses: docker/login-action@v4
106106
with:
107107
registry: ghcr.io
108108
username: ${{ github.actor }}

.github/workflows/lint-web.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525

2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929
with:
3030
submodules: recursive
31-
- uses: actions/setup-node@v4
31+
- uses: actions/setup-node@v6
3232
with:
3333
node-version: 24
3434
- name: install deps

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
steps:
4646
- name: Create GitHub release
4747
id: release
48-
uses: softprops/action-gh-release@v1
48+
uses: softprops/action-gh-release@v2
4949
if: startsWith(github.ref, 'refs/tags/')
5050
with:
5151
draft: true
@@ -89,7 +89,7 @@ jobs:
8989
echo "VERSION=$VERSION" >> $GITHUB_ENV
9090
9191
- name: Checkout
92-
uses: actions/checkout@v4
92+
uses: actions/checkout@v6
9393
with:
9494
submodules: recursive
9595

@@ -105,7 +105,7 @@ jobs:
105105
id: setup
106106

107107
- name: Set up Docker BuildX
108-
uses: docker/setup-buildx-action@v3
108+
uses: docker/setup-buildx-action@v4
109109
with:
110110
config-inline: |
111111
[registry."docker.io"]
@@ -118,7 +118,7 @@ jobs:
118118
version: 10.17
119119

120120
- name: Use Node.js
121-
uses: actions/setup-node@v4
121+
uses: actions/setup-node@v6
122122
with:
123123
node-version: 24
124124
cache: "pnpm"
@@ -143,7 +143,7 @@ jobs:
143143
run: mv target/${{ matrix.target }}/release/defguard-proxy defguard-proxy-${{ github.ref_name }}-${{ matrix.target }}
144144

145145
- name: Tar
146-
uses: a7ul/tar-action@v1.1.0
146+
uses: a7ul/tar-action@v1.2.0
147147
with:
148148
command: c
149149
files: |

.github/workflows/sbom.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
2828
2929
- name: Checkout
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v6
3131
with:
3232
ref: ${{ steps.vars.outputs.TAG_NAME }}
3333
submodules: recursive
3434

3535
- name: Create SBOM with Trivy
36-
uses: aquasecurity/trivy-action@0.34.1
36+
uses: aquasecurity/trivy-action@0.35.0
3737
with:
3838
scan-type: 'fs'
3939
format: 'spdx-json'
@@ -43,7 +43,7 @@ jobs:
4343
scanners: "vuln"
4444

4545
- name: Create docker image SBOM with Trivy
46-
uses: aquasecurity/trivy-action@0.34.1
46+
uses: aquasecurity/trivy-action@0.35.0
4747
with:
4848
image-ref: "ghcr.io/defguard/defguard-proxy:${{ steps.vars.outputs.VERSION }}"
4949
scan-type: 'image'
@@ -53,7 +53,7 @@ jobs:
5353
scanners: "vuln"
5454

5555
- name: Create security advisory file with Trivy
56-
uses: aquasecurity/trivy-action@0.34.1
56+
uses: aquasecurity/trivy-action@0.35.0
5757
with:
5858
scan-type: 'fs'
5959
format: 'json'
@@ -63,7 +63,7 @@ jobs:
6363
scanners: "vuln"
6464

6565
- name: Create docker image security advisory file with Trivy
66-
uses: aquasecurity/trivy-action@0.34.1
66+
uses: aquasecurity/trivy-action@0.35.0
6767
with:
6868
image-ref: "ghcr.io/defguard/defguard-proxy:${{ steps.vars.outputs.VERSION }}"
6969
scan-type: 'image'

.github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020

2121
env:
2222
CARGO_TERM_COLOR: always
23+
# sccache
24+
SCCACHE_GHA_ENABLED: "true"
25+
RUSTC_WRAPPER: "sccache"
2326

2427
jobs:
2528
test:
@@ -31,20 +34,20 @@ jobs:
3134
- name: Debug
3235
run: echo ${{ github.ref_name }}
3336
- name: Checkout
34-
uses: actions/checkout@v4
37+
uses: actions/checkout@v6
3538
with:
3639
submodules: recursive
3740
- name: Scan code with Trivy
38-
uses: aquasecurity/trivy-action@0.34.1
41+
uses: aquasecurity/trivy-action@0.35.0
3942
with:
4043
scan-type: 'fs'
4144
scan-ref: '.'
4245
exit-code: "1"
4346
ignore-unfixed: true
4447
severity: "CRITICAL,HIGH,MEDIUM"
4548
scanners: "vuln"
46-
- name: Cache
47-
uses: Swatinem/rust-cache@v2
49+
- name: Run sccache-cache
50+
uses: mozilla-actions/sccache-action@v0.0.9
4851
- name: Install protoc
4952
run: apt-get update && apt-get -y install protobuf-compiler
5053
- name: Check format

0 commit comments

Comments
 (0)