File tree Expand file tree Collapse file tree 2 files changed +19
-18
lines changed Expand file tree Collapse file tree 2 files changed +19
-18
lines changed Original file line number Diff line number Diff line change
1
+ # yamllint disable rule:line-length
1
2
name : Test for BuildEnv L1 container build
2
3
3
4
on :
4
5
push :
5
6
branches :
6
7
- main
8
+ paths :
9
+ - ' build-container/**'
7
10
8
11
permissions :
9
12
id-token : write
10
13
attestations : write
11
14
jobs :
12
15
build :
13
- if : " contains(github.event.commits[0].message, '[test]')"
14
16
runs-on : ubuntu-latest
15
17
16
18
steps :
17
- - name : Checkout
18
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19
+ - name : Checkout
20
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21
+ - name : Build docker container
22
+ id : build
23
+ uses : docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
24
+ with :
25
+ context : " ."
26
+ file : " build-container/test-buildenv-l1.dockerfile"
27
+ tags : " test_l1:latest"
19
28
20
- - name : Build docker container
21
- id : build
22
- uses : actions/docker-build-push@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
23
- with :
24
- context : " ."
25
- file : " build-container/test-buildenv-l1.dockerfile"
26
- tag : " test_l1:latest"
27
-
28
- - name : Generate SLSA Provenance
29
- id : slsa
30
- uses : actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
31
- with :
32
- subject-name : " test_l1"
33
- subject-digest : ${{ steps.build.outputs.digest }}
29
+ - name : Generate SLSA Provenance
30
+ id : slsa
31
+ uses : actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
32
+ with :
33
+ subject-name : " test_l1"
34
+ subject-digest : ${{ steps.build.outputs.digest }}
Original file line number Diff line number Diff line change 1
1
# This file is used fo testing measurements within containers
2
2
3
3
def hello ():
4
- print ('Hello, World. ' )
4
+ print ('Hello, World!! ' )
5
5
6
6
if __name__ == '__main__' :
7
7
hello ()
You can’t perform that action at this time.
0 commit comments