feat(CI): Continuously find & fix vulnerabilities in dependencies
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
791ce9ecf2
commit
8d81276006
|
@ -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
|
14
README.md
14
README.md
|
@ -707,13 +707,13 @@ See more detail about [Firebase Cloud Messaging HTTP Protocol reference](https:/
|
|||
|
||||
### Huawei notification
|
||||
|
||||
* app_id: app id from huawei developer console
|
||||
* huawei_data: mapped to data
|
||||
* huawei_notification: mapped to notification
|
||||
* huawei_ttl: mapped to ttl
|
||||
* huawei_collapse_key: mapped to collapse_key
|
||||
* bi_tag:
|
||||
* fast_app_target:
|
||||
1. app_id: app id from huawei developer console
|
||||
2. bi_tag:
|
||||
3. fast_app_target:
|
||||
4. huawei_data: mapped to data
|
||||
5. huawei_notification: mapped to notification
|
||||
6. huawei_ttl: mapped to ttl
|
||||
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).
|
||||
|
||||
|
|
Loading…
Reference in New Issue