[Snyk] Security upgrade mongodb from 3.5.9 to 3.6.6 #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ensure Snyk File Versions | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
Check-Versions: | |
name: Ensure Snyk Policy Version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Ensure correct .snyk version | |
run: | | |
echo "${{ secrets.SNYK_SHA }}" | sha256sum --check --status - | |
if [ $? -eq 0 ]; then | |
echo ".snyk file is up-to-date." | |
else | |
echo ".snyk file was missing or outdated." | |
fi | |
- name: Ensure correct snyk-test.yaml version | |
run: | | |
echo "${{ secrets.SNYK_TEST_SHA }}" | sha256sum --check --status - | |
if [ $? -eq 0 ]; then | |
echo ".github/workflows/snyk-test.yaml is up-to-date." | |
else | |
echo ".github/workflows/snyk-test.yaml file was missing or outdated." | |
fi | |
Trigger-Test: | |
needs: Check-Versions | |
name: Trigger Snyk test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- env: | |
GH_TOKEN: ${{ secrets.MY_TOKEN }} | |
SNYK_ACTION_NAME: ${{ secrets.SNYK_ACTION_NAME }} | |
run: | | |
gh workflow run $SNYK_ACTION_NAME |