Skip to content

Commit 4a2beeb

Browse files
authored
Merge branch 'main' into enhance-add-access-rule-ux
2 parents b4fcb44 + 681d34c commit 4a2beeb

182 files changed

Lines changed: 115 additions & 1993 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/check-cves.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Check out codebase
13-
uses: actions/checkout@v6
13+
uses: actions/checkout@v7
1414

1515
- name: Scan current project
1616
id: scan

.github/workflows/create-bosh-lite.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
sudo apt install -y build-essential unzip wamerican
4747

4848
- name: Checkout bosh-bootloader
49-
uses: actions/checkout@v6
49+
uses: actions/checkout@v7
5050
with:
5151
repository: cloudfoundry/bosh-bootloader
5252
path: bosh-bootloader
5353

5454
- name: Checkout cli
55-
uses: actions/checkout@v6
55+
uses: actions/checkout@v7
5656
with:
5757
path: cli
5858

@@ -103,14 +103,14 @@ jobs:
103103
gsutil -m cp -R -P ./$env_name gs://cf-cli-bosh-lites/
104104
105105
- name: Checkout cf-deployment
106-
uses: actions/checkout@v6
106+
uses: actions/checkout@v7
107107
with:
108108
repository: cloudfoundry/cf-deployment
109109
ref: release-candidate
110110
path: cf-deployment
111111

112112
- name: Checkout bosh-deployment
113-
uses: actions/checkout@v6
113+
uses: actions/checkout@v7
114114
with:
115115
repository: cloudfoundry/bosh-deployment
116116
path: bosh-deployment

.github/workflows/delete-bosh-lite.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ env:
1919
BOSH_DEPLOYMENT: cf
2020
BOSH_NON_INTERACTIVE: true
2121
ENV_NAME: ${{ inputs.env-name }}
22+
BBL_CLI_VERSION: ${{ vars.BBL_CLI_VERSION }}
23+
BOSH_CLI_VERSION: ${{ vars.BOSH_CLI_VERSION }}
2224

2325
jobs:
2426
delete-env:
@@ -31,27 +33,25 @@ jobs:
3133
go version
3234
3335
install_location=/usr/local/bin
34-
bbl_version=v9.0.35
35-
bosh_cli_artifact=bosh-cli-7.7.2-linux-amd64
36-
37-
sudo curl https://github.com/cloudfoundry/bosh-bootloader/releases/download/${bbl_version}/bbl-${bbl_version}_linux_amd64 --silent --location --output $install_location/bbl
36+
37+
sudo curl https://github.com/cloudfoundry/bosh-bootloader/releases/download/v${BBL_CLI_VERSION}/bbl-v${BBL_CLI_VERSION}_linux_amd64 --silent --location --output $install_location/bbl
3838
sudo chmod +x $install_location/bbl
3939
bbl --version
40-
41-
sudo curl https://github.com/cloudfoundry/bosh-cli/releases/download/v7.7.2/$bosh_cli_artifact --silent --output $install_location/bosh --location
40+
41+
sudo curl https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_CLI_VERSION}/bosh-cli-${BOSH_CLI_VERSION}-linux-amd64 --silent --output $install_location/bosh --location
4242
sudo chmod +x $install_location/bosh
4343
bosh --version
4444
4545
sudo apt update
4646
sudo apt install -y build-essential unzip wamerican
4747

4848
- name: Checkout cli
49-
uses: actions/checkout@v6
49+
uses: actions/checkout@v7
5050
with:
5151
path: cli
5252

5353
- name: Checkout bosh-bootloader
54-
uses: actions/checkout@v6
54+
uses: actions/checkout@v7
5555
with:
5656
repository: cloudfoundry/bosh-bootloader
5757
path: bosh-bootloader
@@ -72,10 +72,14 @@ jobs:
7272
run: |
7373
cd ${ENV_NAME}/bbl-state
7474
eval "$(bbl print-env --shell-type posix)"
75-
75+
76+
# Delete the CF deployment first so warden containers release their
77+
# bind mounts on the director's persistent disk.
78+
echo "Deleting CF deployment ${BOSH_DEPLOYMENT}"
79+
bosh delete-deployment -d ${BOSH_DEPLOYMENT} --force --skip-drain || true
80+
7681
echo "Deleting env ${ENV_NAME}"
77-
echo ${BBL_GCP_SERVICE_ACCOUNT_KEY} > key.json
78-
bbl down --no-confirm --gcp-service-account-key=key.json
82+
bbl down --no-confirm
7983
8084
- name: delete gcs bucket
8185
run: |

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: lint
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@v7
2727
with:
2828
fetch-depth: '0'
2929
- name: Set up Go 1.x
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: Checkout
43-
uses: actions/checkout@v6
43+
uses: actions/checkout@v7
4444
with:
4545
fetch-depth: '0'
4646
- name: Set Up Go

.github/workflows/release-build-sign-upload.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171

7272
steps:
7373
- name: Checkout cli
74-
uses: actions/checkout@v6
74+
uses: actions/checkout@v7
7575

7676
- name: Bump version
7777
id: bump-version
@@ -127,10 +127,10 @@ jobs:
127127
run: echo "VERSION_BUILD $VERSION_BUILD"
128128

129129
- name: Checkout cli
130-
uses: actions/checkout@v6
130+
uses: actions/checkout@v7
131131

132132
- name: Checkout cli-ci
133-
uses: actions/checkout@v6
133+
uses: actions/checkout@v7
134134
with:
135135
repository: cloudfoundry/cli-ci.git
136136
path: cli-ci
@@ -151,7 +151,7 @@ jobs:
151151
go env
152152
153153
- name: Go Assets Cache
154-
uses: actions/cache@v5
154+
uses: actions/cache@v6
155155
with:
156156
path: |
157157
${{ steps.go-cache-paths.outputs.go-mod }}
@@ -396,17 +396,17 @@ jobs:
396396
run: echo "VERSION_BUILD $VERSION_BUILD"
397397

398398
- name: Checkout cli
399-
uses: actions/checkout@v6
399+
uses: actions/checkout@v7
400400

401401
- name: Checkout cli-ci
402-
uses: actions/checkout@v6
402+
uses: actions/checkout@v7
403403
with:
404404
repository: cloudfoundry/cli-ci.git
405405
path: cli-ci
406406
ref: main
407407

408408
- name: Checkout bomutils
409-
uses: actions/checkout@v6
409+
uses: actions/checkout@v7
410410
with:
411411
repository: hogliux/bomutils.git
412412
ref: 0.2
@@ -428,7 +428,7 @@ jobs:
428428
cat "$(brew --repository)/Library/Taps/pivotalsoftware/homebrew-gon/gon.rb" > .github/brew-formulae
429429
430430
- name: Configure Homebrew cache
431-
uses: actions/cache@v5
431+
uses: actions/cache@v6
432432
with:
433433
path: |
434434
~/Library/Caches/Homebrew/gon--*
@@ -448,7 +448,7 @@ jobs:
448448
go env
449449
450450
- name: Go Assets Cache
451-
uses: actions/cache@v5
451+
uses: actions/cache@v6
452452
with:
453453
path: |
454454
${{ steps.go-cache-paths.outputs.go-mod }}
@@ -625,7 +625,7 @@ jobs:
625625
VERSION_MAJOR: ${{ needs.setup.outputs.version-major }}
626626
steps:
627627
- name: Checkout
628-
uses: actions/checkout@v6
628+
uses: actions/checkout@v7
629629
with:
630630
fetch-depth: 0
631631
- name: Set up Go
@@ -768,7 +768,7 @@ jobs:
768768
steps:
769769

770770
- name: Checkout cli
771-
uses: actions/checkout@v6
771+
uses: actions/checkout@v7
772772

773773
- name: Download signed artifacts
774774
uses: actions/download-artifact@v8
@@ -1019,7 +1019,7 @@ jobs:
10191019
path: ${{ env.ARTIFACTS_DIR }}
10201020

10211021
- name: Checkout CLI
1022-
uses: actions/checkout@v6
1022+
uses: actions/checkout@v7
10231023
with:
10241024
path: ${{ env.REPO_DIR }}
10251025

@@ -1059,7 +1059,7 @@ jobs:
10591059
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
10601060
steps:
10611061
- name: Checkout CLAW
1062-
uses: actions/checkout@v6
1062+
uses: actions/checkout@v7
10631063
with:
10641064
repository: cloudfoundry/CLAW
10651065
ref: master

.github/workflows/release-update-repos.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: echo "claw-url=https://packages.cloudfoundry.org" >> "${GITHUB_OUTPUT}"
3131

3232
- name: Checkout cli
33-
uses: actions/checkout@v6
33+
uses: actions/checkout@v7
3434

3535
- name: Parse semver
3636
id: parse-semver
@@ -71,14 +71,14 @@ jobs:
7171
steps:
7272

7373
- name: Checkout cli-ci
74-
uses: actions/checkout@v6
74+
uses: actions/checkout@v7
7575
with:
7676
repository: cloudfoundry/cli-ci.git
7777
ref: main
7878
path: cli-ci
7979

8080
- name: Checkout homebrew-tap
81-
uses: actions/checkout@v6
81+
uses: actions/checkout@v7
8282
with:
8383
repository: cloudfoundry/homebrew-tap
8484
ref: master
@@ -246,7 +246,7 @@ jobs:
246246
echo "VERSION_BUILD: ${VERSION_BUILD}"
247247
248248
- name: Checkout
249-
uses: actions/checkout@v6
249+
uses: actions/checkout@v7
250250

251251
- uses: ruby/setup-ruby@v1
252252
with:
@@ -489,7 +489,7 @@ jobs:
489489
echo "VERSION_BUILD: ${VERSION_BUILD}"
490490
491491
- name: Checkout
492-
uses: actions/checkout@v6
492+
uses: actions/checkout@v7
493493

494494
- name: Calculate Checksums
495495
run: |
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Remove safe-to-test label on new commits
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
- v8
8+
types:
9+
- synchronize
10+
11+
jobs:
12+
remove-label:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: write
16+
if: contains(github.event.pull_request.labels.*.name, 'safe-to-test')
17+
steps:
18+
- name: Remove safe-to-test label
19+
run: gh pr edit "${{ github.event.pull_request.number }}" --remove-label "safe-to-test" --repo "${{ github.repository }}"
20+
env:
21+
GH_TOKEN: ${{ github.token }}

.github/workflows/tests-integration-reusable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout cli
35-
uses: actions/checkout@v6
35+
uses: actions/checkout@v7
3636
with:
3737
ref: ${{inputs.gitRef}}
3838
fetch-depth: 0
3939
path: cli
4040

4141
- name: Checkout CF deployment tasks
42-
uses: actions/checkout@v6
42+
uses: actions/checkout@v7
4343
with:
4444
repository: cloudfoundry/cf-deployment-concourse-tasks
4545
path: cf-deployment-concourse-tasks

.github/workflows/tests-integration.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ on:
2525
branches:
2626
- main
2727
- v8
28+
types:
29+
- opened
30+
- synchronize
31+
- reopened
32+
- labeled
2833
paths-ignore:
2934
- "doc/**"
3035
- ".gitpod.yml"
@@ -34,7 +39,15 @@ jobs:
3439

3540
get-sha:
3641
runs-on: ubuntu-latest
37-
if: ${{ github.actor != 'dependabot[bot]' }}
42+
if: |
43+
${{ github.actor != 'dependabot[bot]' && (
44+
github.event_name == 'workflow_dispatch' ||
45+
github.event_name == 'push' ||
46+
github.event.pull_request.author_association == 'OWNER' ||
47+
github.event.pull_request.author_association == 'COLLABORATOR' ||
48+
(github.event.action == 'labeled' &&
49+
github.event.label.name == 'safe-to-test')
50+
) }}
3851
outputs:
3952
gitRef: ${{steps.calculate.outputs.ref}}
4053
steps:
@@ -46,6 +59,9 @@ jobs:
4659
elif [[ "${{ github.event_name }}" == "push" ]]; then
4760
echo "checkout push request ${{github.event.push.after}}"
4861
echo "ref=${{github.event.push.after}}" >> $GITHUB_OUTPUT
62+
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
63+
echo "checkout workflow_dispatch ref ${{ github.sha }}"
64+
echo "ref=${{ github.sha }}" >> $GITHUB_OUTPUT
4965
else
5066
echo "checkout else ${{ github.event.workflow_run.head_sha }}"
5167
echo "ref=${{github.event.workflow_run.head_sha}}" >> $GITHUB_OUTPUT
@@ -58,7 +74,7 @@ jobs:
5874
- get-sha
5975
steps:
6076
- name: Checkout
61-
uses: actions/checkout@v6
77+
uses: actions/checkout@v7
6278
with:
6379
ref: ${{needs.get-sha.outputs.gitRef}}
6480
fetch-depth: 0
@@ -87,7 +103,7 @@ jobs:
87103
- create-cf-env
88104
outputs:
89105
env-name: ${{ steps.set-name.outputs.env-name }}
90-
if: ${{ always() && github.actor != 'dependabot[bot]' }}
106+
if: ${{ always() && needs.get-sha.result == 'success' && github.actor != 'dependabot[bot]' }}
91107
steps:
92108
- name: set env name
93109
id: set-name

.github/workflows/tests-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
steps:
4747
- name: Checkout Repository
48-
uses: actions/checkout@v6
48+
uses: actions/checkout@v7
4949

5050
- name: Setup Go Environment
5151
uses: actions/setup-go@v6

0 commit comments

Comments
 (0)