File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11
11
imageName : " webapp01"
12
12
tag : ${{ github.sha }}
13
13
14
+ permissions :
15
+ contents : read
16
+ id-token : write # required to upload artifacts
17
+
14
18
jobs :
15
19
anchore-syft-Scan :
16
20
name : Anchore Syft SBOM Scan
19
23
20
24
permissions :
21
25
contents : write # required to upload to the Dependency submission API
22
- actions : read # to find workflow artifacts when attaching release assets
23
26
24
27
steps :
25
28
- name : Checkout code
29
32
run : docker build ./src/webapp01 --file ./src/webapp01/Dockerfile --tag ${{ env.imageName }}:${{ env.tag }}
30
33
31
34
- name : Scan the image and upload dependency results
32
- uses : anchore/sbom-action@v0
35
+ uses : anchore/sbom-action@bb716408e75840bbb01e839347cd213767269d4a
33
36
with :
34
37
image : " ${{ env.imageName }}:${{ env.tag }}"
35
38
artifact-name : image.spdx.json
Original file line number Diff line number Diff line change 10
10
AZURE_WEBAPP_PACKAGE_PATH : ' ./src' # set this to the path to your web app project, defaults to the repository root
11
11
DOTNET_VERSION : ' 9.0.x' # set this to the dot net version to use
12
12
13
+ permissions :
14
+ contents : read
15
+ id-token : write # required to upload artifacts
16
+
13
17
jobs :
14
18
build :
15
19
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments