diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml new file mode 100644 index 0000000..dc9dbf0 --- /dev/null +++ b/.github/workflows/snyk.yml @@ -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 diff --git a/README.md b/README.md index 157c191..0200906 100644 --- a/README.md +++ b/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).