Skip to content

Commit

Permalink
Check for secrets being present at GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Feb 20, 2020
1 parent 5369b3b commit 78d2507
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cleanup_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
cleanup:
runs-on: ubuntu-latest
if: secrets.buildJabRefPrivateKey

steps:
- name: Extract branch name
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:

runs-on: ${{ matrix.os }}
name: Create installer and portable version for ${{ matrix.displayName }}
if: secrets.SNAPCRAFT_LOGIN_FILE

steps:
- name: Checkout source
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
oracletests:
name: Oracle tests
runs-on: ubuntu-latest
if: secrets.CCRYPT
steps:
- name: Checkout source
uses: actions/checkout@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Update test coverage metrics
run: xvfb-run --auto-servernum ./gradlew jacocoTestReport && bash <(curl -s https://codecov.io/bash);
if: secrets.CODECOV_TOKEN
env:
CI: "false" # we pretend to run locally - even if tests fail on the CI, they count towards test coverage
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 78d2507

Please sign in to comment.