Skip to content

Commit dbccdd6

Browse files
authored
[#path] add: support env (#313)
1 parent 4af45c4 commit dbccdd6

5 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/docker-build-and-push.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
dockerfile:
1010
type: string
1111
default: 'Dockerfile'
12+
environment:
13+
type: string
14+
default: ''
1215
egress-policy-allowlist:
1316
type: string
1417
default: ''
@@ -94,6 +97,7 @@ jobs:
9497
security-events: write
9598
name: Docker build and push
9699
runs-on: ${{ inputs.runs-on }}
100+
environment: ${{ inputs.environment != '' && inputs.environment || null }}
97101
defaults:
98102
run:
99103
working-directory: ${{ inputs.working-directory }}

.github/workflows/pulumi-preview.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
disable-sudo:
1616
type: boolean
1717
default: true
18+
environment:
19+
type: string
20+
default: ''
1821
egress-policy-allowlist:
1922
type: string
2023
default: ''
@@ -45,6 +48,7 @@ jobs:
4548
pull-requests: write
4649
id-token: write
4750
runs-on: ${{ inputs.runs-on }}
51+
environment: ${{ inputs.environment != '' && inputs.environment || null }}
4852
env:
4953
PULUMI_HOME: ${{ github.workspace }}/.pulumi
5054
defaults:

.github/workflows/pulumi-up.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
disable-sudo:
1616
type: boolean
1717
default: true
18+
environment:
19+
type: string
20+
default: ''
1821
egress-policy-allowlist:
1922
type: string
2023
default: ''
@@ -44,6 +47,7 @@ jobs:
4447
contents: read
4548
id-token: write
4649
runs-on: ${{ inputs.runs-on }}
50+
environment: ${{ inputs.environment != '' && inputs.environment || null }}
4751
env:
4852
PULUMI_HOME: ${{ github.workspace }}/.pulumi
4953
defaults:

.github/workflows/sast.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: SAST
33
on:
44
workflow_call:
55
inputs:
6+
environment:
7+
type: string
8+
default: ''
69
runs-on:
710
type: string
811
default: 'ubuntu-latest'
@@ -21,6 +24,7 @@ jobs:
2124
security-events: write
2225
name: Semgrep
2326
runs-on: ${{ inputs.runs-on }}
27+
environment: ${{ inputs.environment != '' && inputs.environment || null }}
2428
if: (github.repository_owner == 'notdodo')
2529
container:
2630
image: semgrep/semgrep:1.125.0

.github/workflows/terraform-ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
disable-sudo:
1313
type: boolean
1414
default: true
15+
environment:
16+
type: string
17+
default: ''
1518
egress-policy-allowlist:
1619
type: string
1720
default: ''
@@ -38,6 +41,7 @@ jobs:
3841
terraform-lint:
3942
name: Terraform Linting
4043
runs-on: ${{ inputs.runs-on }}
44+
environment: ${{ inputs.environment != '' && inputs.environment || null }}
4145
permissions:
4246
contents: read
4347
pull-requests: write
@@ -129,6 +133,7 @@ jobs:
129133
name: Terraform Plan
130134
runs-on: ${{ inputs.runs-on }}
131135
needs: terraform-lint
136+
environment: ${{ inputs.environment != '' && inputs.environment || null }}
132137
permissions:
133138
contents: read
134139
pull-requests: write

0 commit comments

Comments
 (0)