Skip to content

Commit f4ea441

Browse files
committed
update ci permissions
1 parent ae7759c commit f4ea441

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
name: OCSPChecker
2-
permissions: {}
3-
on: [push]
1+
name: test
2+
permissions: {} # https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#defining-access-for-the-github_token-permissions
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '!master'
48

59
jobs:
610
test:
@@ -44,7 +48,7 @@ jobs:
4448
if: ${{ always() }}
4549

4650
build:
47-
if: github.repository == 'gattjoe/OCSPChecker' # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-only-run-job-for-specific-repository
51+
if: github.repository == 'gattjoe/OCSPChecker' && github.ref == 'refs/heads/master'
4852
runs-on: ubuntu-latest
4953
needs: test
5054
steps:

0 commit comments

Comments
 (0)