Skip to content

Commit 451f59d

Browse files
committed
update pipeline to get jdk file.
1 parent 35b3091 commit 451f59d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/anchore.yml

+12
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,21 @@ jobs:
2929
contents: read # for actions/checkout to fetch code
3030
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
3131
runs-on: ubuntu-latest
32+
env:
33+
SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
34+
JDK_DRIVEID: ${{ secrets.JDK11_DRIVEID }}
3235
steps:
3336
- name: Checkout the code
3437
uses: actions/checkout@v2
38+
39+
- name: Download Files from Google Drive
40+
uses: docker://gvfn/gdrive
41+
with:
42+
entrypoint: "/bin/sh"
43+
args: |
44+
-c "\
45+
gdrive --config /gdrive --service-account-evar SERVICE_ACCOUNT_JSON download --path /github/workspace/packages/ ${JDK_DRIVEID}
46+
3547
- name: Build the Docker image
3648
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
3749
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled

0 commit comments

Comments
 (0)