Skip to content

Commit b46b620

Browse files
authored
Merge branch 'main' into spaceghost/pidfiles-for-server-and-cli
2 parents a728ec8 + 59bab7d commit b46b620

21 files changed

+126
-81
lines changed

.github/blunderbuss.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
assign_prs:
2-
- janell-chen
3-
- garethgeorge
2+
- dazuma
3+
- akerekes
4+
- nifflets
45

56
assign_issues:
6-
- janell-chen
7-
- garethgeorge
7+
- dazuma
8+
- akerekes
9+
- nifflets
10+

.github/workflows/buildpack-integration-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions: read-all
1515

1616
jobs:
1717
ruby30-buildpack-test:
18+
if: github.event.pull_request.head.repo.full_name == github.repository
1819
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
1920
with:
2021
http-builder-source: 'test/conformance'

.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
44+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
4545
with:
4646
disable-sudo: true
4747
egress-policy: block
@@ -52,11 +52,11 @@ jobs:
5252
uploads.github.com:443
5353
5454
- name: Checkout repository
55-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
55+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5656

5757
# Initializes the CodeQL tools for scanning.
5858
- name: Initialize CodeQL
59-
uses: github/codeql-action/init@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6
59+
uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
6060
with:
6161
languages: ${{ matrix.language }}
6262
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -66,7 +66,7 @@ jobs:
6666
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6767
# If this step fails, then you should remove it and run the build manually (see below)
6868
- name: Autobuild
69-
uses: github/codeql-action/autobuild@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6
69+
uses: github/codeql-action/autobuild@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
7070

7171
# ℹ️ Command-line programs to run using the OS shell.
7272
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -79,6 +79,6 @@ jobs:
7979
# ./location_of_script_within_repo/buildscript.sh
8080

8181
- name: Perform CodeQL Analysis
82-
uses: github/codeql-action/analyze@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6
82+
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
8383
with:
8484
category: "/language:${{matrix.language}}"

.github/workflows/conformance.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2"]
19+
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
2020
steps:
2121
- name: Harden Runner
22-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
22+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
2323
with:
2424
disable-sudo: true
2525
egress-policy: block
@@ -33,39 +33,39 @@ jobs:
3333
storage.googleapis.com:443
3434
3535
- name: Checkout code
36-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
36+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3737
- name: Setup Go
38-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
38+
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
3939
with:
40-
go-version: '1.17'
40+
go-version: '1.21'
4141
check-latest: true
4242
- name: Setup Ruby
43-
uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0
43+
uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0
4444
with:
4545
ruby-version: ${{ matrix.ruby }}
4646
bundler-cache: true
4747
- name: Run HTTP conformance tests
48-
uses: GoogleCloudPlatform/functions-framework-conformance/action@2f5f319c06a3531be7f75dc5acf6bd00417ff76e # v1.8.3
48+
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
4949
with:
5050
functionType: 'http'
5151
useBuildpacks: false
5252
cmd: "'bundle exec functions-framework-ruby --source test/conformance/app.rb --target http_func --signature-type http'"
5353
- name: Run Typed conformance tests
54-
uses: GoogleCloudPlatform/functions-framework-conformance/action@2f5f319c06a3531be7f75dc5acf6bd00417ff76e # v1.8.3
54+
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
5555
with:
5656
functionType: 'http'
5757
declarativeType: 'typed'
5858
useBuildpacks: false
5959
cmd: "'bundle exec functions-framework-ruby --source test/conformance/app.rb --target typed_func --signature-type http'"
6060
- name: Run CloudEvent conformance tests
61-
uses: GoogleCloudPlatform/functions-framework-conformance/action@2f5f319c06a3531be7f75dc5acf6bd00417ff76e # v1.8.3
61+
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
6262
with:
6363
functionType: 'cloudevent'
6464
useBuildpacks: false
6565
validateMapping: true
6666
cmd: "'bundle exec functions-framework-ruby --source test/conformance/app.rb --target cloudevent_func --signature-type cloudevent'"
6767
- name: Run HTTP concurrency tests
68-
uses: GoogleCloudPlatform/functions-framework-conformance/action@2f5f319c06a3531be7f75dc5acf6bd00417ff76e # v1.8.3
68+
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
6969
with:
7070
functionType: 'http'
7171
useBuildpacks: false

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
20+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
2121
with:
2222
disable-sudo: true
2323
egress-policy: block
@@ -26,6 +26,6 @@ jobs:
2626
github.com:443
2727
2828
- name: 'Checkout Repository'
29-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
29+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3030
- name: 'Dependency Review'
31-
uses: actions/dependency-review-action@1360a344ccb0ab6e9475edef90ad2f46bf8003b1 # v3.0.6
31+
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Harden Runner
19-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
19+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
2020
with:
2121
disable-sudo: true
2222
egress-policy: block
@@ -27,9 +27,9 @@ jobs:
2727
rubygems.org:443
2828
2929
- name: Checkout repo
30-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
30+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3131
- name: Install Ruby 3.0
32-
uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0
32+
uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0
3333
with:
3434
ruby-version: "3.0"
3535
bundler-cache: true

.github/workflows/push-gh-pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818

1919
steps:
2020
- name: Harden Runner
21-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
21+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
2222
with:
2323
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
2424
- name: Checkout repo
25-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
25+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2626
- name: Install Ruby ${{ env.ruby_version }}
27-
uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0
27+
uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0
2828
with:
2929
ruby-version: ${{ env.ruby_version }}
3030
bundler-cache: true

.github/workflows/scorecard.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Harden Runner
28-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
28+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
2929
with:
3030
disable-sudo: true
3131
egress-policy: block
@@ -36,17 +36,20 @@ jobs:
3636
bestpractices.coreinfrastructure.org:443
3737
fulcio.sigstore.dev:443
3838
github.com:443
39+
*.github.com:443
3940
oss-fuzz-build-logs.storage.googleapis.com:443
4041
sigstore-tuf-root.storage.googleapis.com:443
4142
rekor.sigstore.dev:443
43+
*.githubusercontent.com:443
44+
www.bestpractices.dev:443
4245
4346
- name: "Checkout code"
44-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
47+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4548
with:
4649
persist-credentials: false
4750

4851
- name: "Run analysis"
49-
uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3
52+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
5053
with:
5154
results_file: results.sarif
5255
results_format: sarif
@@ -58,6 +61,6 @@ jobs:
5861

5962
# Upload the results to GitHub's code scanning dashboard.
6063
- name: "Upload to code-scanning"
61-
uses: github/codeql-action/upload-sarif@83f0fe6c4988d98a455712a27f0255212bba9bd4 # v2.3.6
64+
uses: github/codeql-action/upload-sarif@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
6265
with:
6366
sarif_file: results.sarif

.github/workflows/unit.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest]
19-
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2"]
19+
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
2020
flags: ["--only --test-unit"]
2121
include:
2222
- os: ubuntu-latest
@@ -38,7 +38,7 @@ jobs:
3838
runs-on: ${{ matrix.os }}
3939
steps:
4040
- name: Harden Runner
41-
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
41+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
4242
with:
4343
disable-sudo: true
4444
egress-policy: block
@@ -49,14 +49,16 @@ jobs:
4949
rubygems.org:443
5050
5151
- name: Checkout repo
52-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
52+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5353
- name: Install Ruby ${{ matrix.ruby }}
54-
uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 # v1.150.0
54+
uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0
5555
with:
5656
ruby-version: "${{ matrix.ruby }}"
5757
bundler-cache: true
5858
- name: Install toys
5959
run: gem install --no-document toys
6060
- name: Test ${{ matrix.flags }}
6161
shell: bash
62+
env:
63+
MT_COMPAT: "true"
6264
run: toys ci ${{ matrix.flags }}

.kokoro/populate-secrets.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function msg { println "$*" >&2 ;}
2323
function println { printf '%s\n' "$(now) $*" ;}
2424

2525
# Populates requested secrets set in SECRET_MANAGER_KEYS
26+
if [[ -z "${SECRET_MANAGER_PROJECT_ID-}" ]]; then
27+
msg "SECRET_MANAGER_PROJECT_ID is not set in environment variables, using default"
28+
SECRET_MANAGER_PROJECT_ID="cloud-devrel-kokoro-resources"
29+
fi
2630

2731
# In Kokoro CI builds, we use the service account attached to the
2832
# Kokoro VM. This means we need to setup auth on other CI systems.
@@ -64,7 +68,7 @@ do
6468
msg "Retrieving secret ${key}"
6569
"${GCLOUD_COMMANDS[@]}" \
6670
secrets versions access latest \
67-
--project cloud-devrel-kokoro-resources \
71+
--project "${SECRET_MANAGER_PROJECT_ID}" \
6872
--secret $key > \
6973
"$SECRET_LOCATION/$key"
7074
if [[ $? == 0 ]]; then

0 commit comments

Comments
 (0)