Skip to content

Commit d719b2f

Browse files
chore: Make dependabot builds run without secrets (box/box-codegen#904) (#1636)
1 parent cacc729 commit d719b2f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "de55410", "specHash": "1e0848d", "version": "10.3.0" }
1+
{ "engineHash": "467757c", "specHash": "1e0848d", "version": "10.3.0" }

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
java-version: ${{ matrix.java }}
2727
cache: 'gradle'
2828
- name: All Tests
29-
if: startsWith(github.head_ref, 'codegen-release')
29+
if: ${{ startsWith(github.head_ref, 'codegen-release') && github.actor != 'dependabot[bot]' }}
3030
env:
3131
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
3232
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }}
@@ -46,11 +46,14 @@ jobs:
4646
SLACK_PARTNER_ITEM_ID: ${{ secrets.SLACK_PARTNER_ITEM_ID }}
4747
run: ./gradlew check --stacktrace
4848
- name: Smoke Tests
49-
if: "!startsWith(github.head_ref, 'codegen-release')"
49+
if: ${{ !startsWith(github.head_ref, 'codegen-release') && github.actor != 'dependabot[bot]' }}
5050
env:
5151
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
5252
CLIENT_ID: ${{ secrets.CLIENT_ID }}
5353
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
5454
USER_ID: ${{ secrets.USER_ID }}
5555
ENTERPRISE_ID: ${{ secrets.ENTERPRISE_ID }}
5656
run: ./gradlew test --tests com.box.sdkgen.auth.AuthITest --tests com.box.sdkgen.files.FilesITest --tests com.box.sdkgen.downloads.DownloadsITest --tests com.box.sdkgen.uploads.UploadsITest --stacktrace
57+
- name: Build (Dependabot only, no tests)
58+
if: github.actor == 'dependabot[bot]'
59+
run: ./gradlew assemble --stacktrace

0 commit comments

Comments
 (0)