|
7 | 7 | branches: |
8 | 8 | - main |
9 | 9 |
|
| 10 | +permissions: {} |
| 11 | + |
10 | 12 | jobs: |
11 | 13 | build: # make sure build/ci work properly and there is no faked build ncc built scripts |
12 | 14 | runs-on: ubuntu-latest |
13 | 15 | steps: |
14 | 16 | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 17 | + with: |
| 18 | + persist-credentials: false |
15 | 19 | - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 |
16 | 20 | with: |
17 | 21 | node-version-file: package.json |
|
30 | 34 | - 5000:5000 |
31 | 35 | steps: |
32 | 36 | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 37 | + with: |
| 38 | + persist-credentials: false |
33 | 39 | - run: npm ci |
34 | 40 | - run: npm run test |
35 | 41 |
|
|
40 | 46 | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
41 | 47 | with: |
42 | 48 | path: ./ |
| 49 | + persist-credentials: false |
43 | 50 |
|
44 | 51 | - name: "Donwload Grype v0.54.0" |
45 | 52 | id: grype |
|
48 | 55 | grype-version: v0.54.0 |
49 | 56 |
|
50 | 57 | - name: "Check Grype version before scan-action" |
51 | | - run: ${{ steps.grype.outputs.cmd }} version | egrep "^Version:.*0.54.0$" |
| 58 | + env: |
| 59 | + GRYPE_CMD: ${{ steps.grype.outputs.cmd }} |
| 60 | + run: | |
| 61 | + "$GRYPE_CMD" version | egrep "^Version:.*0.54.0$" |
52 | 62 |
|
53 | 63 | - name: "Scan test image" |
54 | 64 | uses: ./ |
|
57 | 67 | fail-build: false # to prevent fail due to vuln:s on test image |
58 | 68 |
|
59 | 69 | - name: "Check Grype version after scan-action" |
60 | | - run: ${{ steps.grype.outputs.cmd }} version | egrep "^Version:.*0.54.0$" |
| 70 | + env: |
| 71 | + GRYPE_CMD: ${{ steps.grype.outputs.cmd }} |
| 72 | + run: | |
| 73 | + "$GRYPE_CMD" version | egrep "^Version:.*0.54.0$" |
61 | 74 |
|
62 | 75 | test-all: |
63 | 76 | strategy: |
|
72 | 85 | runs-on: ${{ matrix.os }} |
73 | 86 | steps: |
74 | 87 | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 88 | + with: |
| 89 | + persist-credentials: false |
75 | 90 | - uses: ./ |
76 | 91 | id: scan |
77 | 92 | with: |
|
83 | 98 |
|
84 | 99 | - name: Validate file exists |
85 | 100 | if: ${{ matrix.output-format != 'table' }} |
86 | | - run: test -f '${{ steps.scan.outputs[matrix.output-format] }}' |
| 101 | + shell: bash |
| 102 | + env: |
| 103 | + OUTPUT_FILE: ${{ steps.scan.outputs[matrix.output-format] }} |
| 104 | + run: test -f "$OUTPUT_FILE" |
0 commit comments