FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackrox/.github/workflows/scanner-mapping-update.yaml at master · stackrox/stackrox · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackrox
/
stackrox
Public
Notifications
You must be signed in to change notification settings
Fork
191
Star
1.3k
Code
Issues
54
Pull requests
604
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
stackrox
/
.github
/
workflows
/
scanner-mapping-update.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
40 lines (32 loc) · 1.6 KB
Breadcrumbs
stackrox
/
.github
/
workflows
/
scanner-mapping-update.yaml
Copy path
File metadata and controls
40 lines (32 loc) · 1.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name
:
Scanner mappings update
on
:
schedule
:
-
cron
:
"
0 0 * * *
"
jobs
:
update-scanner-mappings
:
if
:
${{ github.repository_owner == 'stackrox' }}
runs-on
:
ubuntu-latest
env
:
REPOMAPPING_DIR
:
repomapping
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
#
ratchet:actions/checkout@v7.0.0
-
name
:
Authenticate with Google Cloud
uses
:
google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
#
ratchet:google-github-actions/auth@v3
with
:
credentials_json
:
${{ secrets.GOOGLE_SA_STACKROX_HUB_VULN_DUMP_UPLOADER }}
-
name
:
Set up Cloud SDK
uses
:
google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db
#
ratchet:google-github-actions/setup-gcloud@v3
-
name
:
Download repository mappings
run
:
scanner/image/scanner/download-mappings.sh "${{env.REPOMAPPING_DIR}}"
-
name
:
Upload repository mappings to Google Cloud Storage
run
:
|
# Zip the files into mapping.zip
zip mapping.zip ${{env.REPOMAPPING_DIR}}/*
mkdir -p redhat-repository-mappings && mv mapping.zip redhat-repository-mappings/
# Upload mapping.zip to Google Cloud Storage
gsutil cp -r "redhat-repository-mappings" "gs://definitions.stackrox.io/v4"
-
name
:
Send Slack notification on workflow failure
if
:
failure()
run
:
|
curl -X POST -H 'Content-type: application/json' --data '{"text":"<!subteam^S04S96AAVND|acs-scanner-primary> Failure in Scanner V4 Updater Workflow: Update Repository Mappings"}' ${{ secrets.SLACK_ONCALL_SCANNER_WEBHOOK }}
Back
|
FazBrowse Home
|
New Git URL