Skip to content

Commit 4fc5bc0

Browse files
authored
Re-enable safe to test label (#3111)
1 parent d724bc8 commit 4fc5bc0

17 files changed

+33
-19
lines changed

.github/workflows/accessTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -20,6 +20,7 @@ permissions:
2020
jobs:
2121
Access-Tests:
2222
name: Access tests (${{ matrix.os.name }})
23+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2324
strategy:
2425
fail-fast: false
2526
matrix:

.github/workflows/artifactoryTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
Artifactory-Tests:
1919
name: ${{ matrix.suite }} ${{ matrix.os.name }}
20+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2021
strategy:
2122
fail-fast: false
2223
matrix:

.github/workflows/distributionTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
Distribution-Tests:
1919
name: Distribution tests (${{ matrix.os }})
20+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2021
strategy:
2122
fail-fast: false
2223
matrix:

.github/workflows/dockerTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
Docker-tests:
1919
name: Docker tests (${{ matrix.os.name }})
20+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2021
strategy:
2122
matrix:
2223
os:

.github/workflows/frogbot-scan-pull-request.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ permissions:
99
contents: read
1010
jobs:
1111
scan-pull-request:
12+
if: ${{ github.actor != 'dependabot[bot]' }}
1213
runs-on: ubuntu-latest
13-
# A pull request needs to be approved before Frogbot scans it. Any GitHub user who is associated with the
14-
# "frogbot" GitHub environment can approve the pull request to be scanned.
15-
environment: frogbot
1614
steps:
1715
- name: Setup Go with cache
1816
uses: jfrog/.github/actions/install-go-with-cache@main

.github/workflows/goTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -18,6 +18,7 @@ jobs:
1818
GO-tests:
1919
# Go modules doesn't allow passing credentials to a private registry using an HTTP URL. Therefore, the Go tests run against a remote Artifactory server.
2020
name: Go tests (${{ matrix.os }})
21+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2122
strategy:
2223
fail-fast: false
2324
matrix:

.github/workflows/gradleTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
Gradle-Tests:
1919
name: ${{ matrix.os.name }}-gradle-${{ matrix.gradle-version }}
20+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2021
strategy:
2122
fail-fast: false
2223
matrix:

.github/workflows/lifecycleTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "master"
99
# Triggers the workflow on PRs to master branch only.
1010
pull_request_target:
11-
types: [opened, synchronize]
11+
types: [opened, synchronize, labeled]
1212
branches:
1313
- "master"
1414

@@ -19,6 +19,7 @@ concurrency:
1919
jobs:
2020
Lifecycle-Tests:
2121
name: Lifecycle tests (${{ matrix.os }})
22+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2223
strategy:
2324
fail-fast: false
2425
matrix:

.github/workflows/mavenTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
Maven-Tests:
1919
name: Maven tests (${{ matrix.os.name }})
20+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2021
strategy:
2122
fail-fast: false
2223
matrix:

.github/workflows/npmTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "master"
77
# Triggers the workflow on PRs to master branch only.
88
pull_request_target:
9-
types: [opened, synchronize]
9+
types: [opened, synchronize, labeled]
1010
branches:
1111
- "master"
1212

@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
npm-Tests:
1919
name: npm tests (${{ matrix.os.name }})
20+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && (github.event.action != 'labeled' || contains(github.event.pull_request.labels.*.name, 'safe to test')))
2021
strategy:
2122
fail-fast: false
2223
matrix:

0 commit comments

Comments
 (0)