Snyk fixes and code quality fixes #3
This file contains hidden or 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: Checks the security policy and configurations | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
security-policy: | |
if: github.event.repository.visibility == 'public' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@master | |
- name: Checks for SECURITY.md policy file | |
run: | | |
if ! [[ -f "SECURITY.md" || -f ".github/SECURITY.md" ]]; then exit 1; fi | |
security-license: | |
if: github.event.repository.visibility == 'public' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@master | |
- name: Checks for License file | |
run: | | |
if ! [[ -f "LICENSE" || -f "License.txt" || -f "LICENSE.md" ]]; then exit 1; fi |