feat(CI): Continuously find & fix vulnerabilities in dependencies

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2022-02-04 10:55:59 +08:00
parent 791ce9ecf2
commit 8d81276006
2 changed files with 37 additions and 7 deletions

30
.github/workflows/snyk.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: "SnyK"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '30 1 * * 0'
jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: snyk.sarif

View File

@ -707,13 +707,13 @@ See more detail about [Firebase Cloud Messaging HTTP Protocol reference](https:/
### Huawei notification ### Huawei notification
* app_id: app id from huawei developer console 1. app_id: app id from huawei developer console
* huawei_data: mapped to data 2. bi_tag:
* huawei_notification: mapped to notification 3. fast_app_target:
* huawei_ttl: mapped to ttl 4. huawei_data: mapped to data
* huawei_collapse_key: mapped to collapse_key 5. huawei_notification: mapped to notification
* bi_tag: 6. huawei_ttl: mapped to ttl
* fast_app_target: 7. huawei_collapse_key: mapped to collapse_key
See more detail about [Huawei Mobulse Services Push API reference](https://developer.huawei.com/consumer/en/doc/development/HMS-References/push-sendapi). See more detail about [Huawei Mobulse Services Push API reference](https://developer.huawei.com/consumer/en/doc/development/HMS-References/push-sendapi).