5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-08 00:16:56 +00:00

Merge pull request #1 from step-security/step-security/secure-workflows

Secure workflows
This commit is contained in:
Varun Sharma 2021-09-08 15:23:27 -07:00 committed by GitHub
commit 72f2fe18c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,8 @@ on: [push]
jobs: jobs:
sanity-checks: sanity-checks:
permissions:
contents: read
name: Sanity Checks name: Sanity Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -22,6 +24,8 @@ jobs:
- run: npm run lint - run: npm run lint
- run: npm test -- --ci --coverage - run: npm test -- --ci --coverage
release: release:
permissions:
contents: write
needs: sanity-checks needs: sanity-checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')" if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')"