Skip to content

Commit 72274b7

Browse files
committed
fix(ci): opt ACTIONS_ALLOW_UNSECURE_COMMANDS
1 parent 76d2e5a commit 72274b7

File tree

6 files changed

+17
-1
lines changed

6 files changed

+17
-1
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
build_binary:
88
name: Build shell-operator binary
99
runs-on: ubuntu-latest
10+
env:
11+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1012
steps:
1113
- name: Set up Go 1.15
1214
uses: actions/setup-go@v2

.github/workflows/dev-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
- ubuntu
5555
- alpine
5656
runs-on: ubuntu-latest
57+
env:
58+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
5759
if: github.event_name == 'pull_request' && github.event.label.id == 1838515600 # ':robot: build dev images' label
5860
steps:
5961
- uses: actions/checkout@v2

.github/workflows/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
run_linter:
99
name: Run linter
1010
runs-on: ubuntu-latest
11+
env:
12+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1113
steps:
1214
- name: Set up Go 1.15
1315
uses: actions/setup-go@v2

.github/workflows/release-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- alpine3.11
2121
- alpine3.12
2222
runs-on: [ubuntu-latest]
23+
env:
24+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2325
steps:
2426
- uses: actions/checkout@v2
2527

.github/workflows/tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
name: Build and unit tests
4747
if: github.event_name == 'push' && github.event.ref != 'refs/heads/master'
4848
runs-on: ubuntu-latest
49+
env:
50+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
4951
steps:
5052
- name: Set up Go 1.15
5153
uses: actions/setup-go@v2
@@ -132,6 +134,8 @@ jobs:
132134
name: Download modules and build libjq
133135
if: (github.event_name == 'push' && github.event.ref == 'refs/heads/master') || (github.event_name == 'pull_request' && github.event.label.id == 1838578615)
134136
runs-on: ubuntu-latest
137+
env:
138+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
135139
steps:
136140
- name: Set up Go 1.15
137141
uses: actions/setup-go@v2
@@ -208,6 +212,8 @@ jobs:
208212
if: (github.event_name == 'push' && github.event.ref == 'refs/heads/master') || (github.event_name == 'pull_request' && github.event.label.id == 1838578615)
209213
needs: prepare_build_dependencies
210214
runs-on: ubuntu-latest
215+
env:
216+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
211217
steps:
212218
- name: Checkout code
213219
uses: actions/checkout@v2
@@ -277,6 +283,8 @@ jobs:
277283
os: [ubuntu-latest]
278284
k8s_version: [1.16, 1.17]
279285
runs-on: ${{ matrix.os }}
286+
env:
287+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
280288
steps:
281289
- name: Checkout code
282290
uses: actions/checkout@v2

pkg/utils/exponential_backoff/delay.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
const MaxExponentialBackoffDelay = time.Duration(32 * time.Second)
1010
const ExponentialDelayFactor float64 = 2.0 // Each delay is twice longer.
11-
const ExponentialDelayRandomMs = 1000 // Each delay has random additonal milliseconds.
11+
const ExponentialDelayRandomMs = 1000 // Each delay has random additional milliseconds.
1212

1313
// CalculateDelay returns delay distributed from initialDelay to default maxDelay (32s)
1414
//

0 commit comments

Comments
 (0)