File tree Expand file tree Collapse file tree 5 files changed +75
-38
lines changed Expand file tree Collapse file tree 5 files changed +75
-38
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : " gomod"
4
+ directory : " /"
5
+ schedule :
6
+ interval : " weekly"
7
+ open-pull-requests-limit : 10
8
+ groups :
9
+ go-modules :
10
+ patterns :
11
+ - " *"
12
+ pull-request-title :
13
+ prefix : " chore(deps)"
14
+ separator : " "
15
+ labels :
16
+ - " dependencies"
17
+ - " go"
18
+
19
+ - package-ecosystem : " github-actions"
20
+ directory : " /"
21
+ schedule :
22
+ interval : " weekly"
23
+ open-pull-requests-limit : 10
24
+ groups :
25
+ actions-updates :
26
+ patterns :
27
+ - " *"
28
+ update-types :
29
+ - " patch"
30
+ - " minor"
31
+ - " major"
32
+ pull-request-title :
33
+ prefix : " chore(deps-dev)"
34
+ separator : " "
35
+ labels :
36
+ - " dependencies"
37
+ - " github-actions"
Original file line number Diff line number Diff line change 1
- name : Lint
1
+ name : Linter
2
2
3
3
on :
4
4
push :
5
+ branches : [ "main" ]
5
6
pull_request :
7
+ branches : [ "main" ]
8
+
9
+ permissions :
10
+ contents : read
6
11
7
12
jobs :
8
13
lint :
9
- name : Run on Ubuntu
14
+ name : Run Linting
10
15
runs-on : ubuntu-latest
16
+
11
17
steps :
12
- - name : Clone the code
18
+ - name : Checkout code
13
19
uses : actions/checkout@v4
14
20
15
21
- name : Setup Go
16
22
uses : actions/setup-go@v5
17
23
with :
18
24
go-version-file : go.mod
25
+ cache : true
19
26
20
- - name : Run linter
27
+ - name : Run golangci-lint
21
28
uses : golangci/golangci-lint-action@v8
22
29
with :
23
30
version : v2.3.0
31
+ args : --timeout=5m --issues-exit-code=0 --verbose
32
+ cache : true
Original file line number Diff line number Diff line change 1
- name : Sign Model Tensorflow Saved Model
1
+ name : Sign model with Sigstore
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -27,18 +27,20 @@ jobs:
27
27
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=sigstore" | jq -r '.value')
28
28
echo "OIDC_TOKEN=$token" >> $GITHUB_ENV
29
29
30
- - name : Set up environment and sign model
30
+ - name : Sign model
31
31
env :
32
32
OIDC_TOKEN : ${{ env.OIDC_TOKEN }}
33
33
run : |
34
- docker run --rm -v $(pwd)/testdata/tensorflow_saved_model:/tensorflow_saved_model:z -w /tensorflow_saved_model ghcr.io/sigstore/model-transparency-cli:v1.0.1 sign sigstore --signature="/tensorflow_saved_model/model.sig" --identity_token "$OIDC_TOKEN" /tensorflow_saved_model
34
+ docker run --rm -v $(pwd)/testdata/tensorflow_saved_model:/tensorflow_saved_model:z -w \
35
+ /tensorflow_saved_model ghcr.io/sigstore/model-transparency-cli:v1.0.1 sign sigstore \
36
+ --signature="/tensorflow_saved_model/model.sig" --identity_token "$OIDC_TOKEN" /tensorflow_saved_model
35
37
36
- - name : Create tar.gz of the signed model
38
+ - name : Create a tarball of the signed model and signature
37
39
run : |
38
- tar -czvf signed_model .tar.gz -C $(pwd)/testdata/tensorflow_saved_model .
40
+ tar -czvf signed_model_bundle .tar.gz -C $(pwd)/testdata/tensorflow_saved_model .
39
41
40
- - name : Upload signed model as artifact
42
+ - name : Upload signed model artifact
41
43
uses : actions/upload-artifact@v4
42
44
with :
43
- name : signed-model
44
- path : signed_model .tar.gz
45
+ name : signed-model-bundle
46
+ path : signed_model_bundle .tar.gz
Original file line number Diff line number Diff line change @@ -2,50 +2,38 @@ name: E2E Tests
2
2
3
3
on :
4
4
push :
5
+ branches : [ "main" ]
5
6
pull_request :
7
+ branches : [ "main" ]
8
+
9
+ permissions :
10
+ contents : read
6
11
7
12
jobs :
8
13
test-e2e :
9
- name : Run on Ubuntu
14
+ name : Run E2E Tests
10
15
runs-on : ubuntu-latest
11
16
steps :
12
- - name : Clone the code
17
+ - name : Checkout code
13
18
uses : actions/checkout@v4
14
19
15
20
- name : Setup Go
16
21
uses : actions/setup-go@v5
17
22
with :
18
23
go-version-file : go.mod
19
-
20
- - name : Install the latest version of kind
21
- run : |
22
- curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
23
- chmod +x ./kind
24
- sudo mv ./kind /usr/local/bin/kind
25
-
26
- - name : Verify kind installation
27
- run : kind version
28
-
29
- - name : Install kubectl
30
- run : |
31
- curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
32
- chmod +x kubectl
33
- sudo mv kubectl /usr/local/bin/kubectl
34
-
35
- - name : Verify kubectl installation
36
- run : kubectl version --client
24
+ cache : true
37
25
38
26
- name : Create kind cluster
39
- run : kind create cluster
27
+ uses : helm/kind-action@v1
28
+ with :
29
+ cluster_name : kind
40
30
41
- - name : Wait for cluster to be ready
31
+ - name : Wait for kind cluster to be ready
42
32
run : |
43
- echo "Waiting for cluster to be ready..."
44
33
kubectl wait --for=condition=Ready nodes --all --timeout=300s
45
34
kubectl wait --for=condition=Ready --namespace=kube-system pod --all --timeout=300s
46
35
echo "Cluster is ready"
47
36
48
- - name : Running Test e2e
37
+ - name : Run E2E tests
49
38
run : |
50
- go mod tidy
51
39
make test-e2e
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: Tests
2
2
3
3
on :
4
4
push :
5
+ branches : [ "main" ]
5
6
pull_request :
7
+ branches : [ "main" ]
6
8
7
9
jobs :
8
10
test :
19
21
20
22
- name : Running Tests
21
23
run : |
22
- go mod tidy
23
24
make test
You can’t perform that action at this time.
0 commit comments