From 05b85965fc66f5da220b829f3eddc8662c78dec2 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 1 Nov 2024 19:58:16 +0000 Subject: [PATCH 1/6] rbe: Testing --- .github/workflows/nighthawk-checks.yml | 2 +- BUILD | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nighthawk-checks.yml b/.github/workflows/nighthawk-checks.yml index dc28fc872..3c49ca406 100644 --- a/.github/workflows/nighthawk-checks.yml +++ b/.github/workflows/nighthawk-checks.yml @@ -17,4 +17,4 @@ jobs: - uses: actions/checkout@v3 - name: Run CI script run: | - echo "Hello github" + bazel run @envoy//tools/cat --@envoy//tools/cat:target=//:hello diff --git a/BUILD b/BUILD index c0ffdec64..6e5d4b265 100644 --- a/BUILD +++ b/BUILD @@ -75,3 +75,11 @@ envoy_cc_binary( "//source/exe:output_transform_main_entry_lib", ], ) + +genrule( + name = "hello", + outs = ["world.txt"], + cmd = """ + echo HELLO > $@ + """, +) From 3c909b9ef852a09a9f7c6e70aa76867bafaf5747 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 1 Nov 2024 20:08:58 +0000 Subject: [PATCH 2/6] .github/ --- .github/workflows/nighthawk-checks.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nighthawk-checks.yml b/.github/workflows/nighthawk-checks.yml index 3c49ca406..3b14986be 100644 --- a/.github/workflows/nighthawk-checks.yml +++ b/.github/workflows/nighthawk-checks.yml @@ -17,4 +17,7 @@ jobs: - uses: actions/checkout@v3 - name: Run CI script run: | - bazel run @envoy//tools/cat --@envoy//tools/cat:target=//:hello + bazel run \ + --config=remote-envoy-engflow \ + --@envoy//tools/cat:target=//:hello \ + @envoy//tools/cat From 513af6896120848f51e3b03b4b8856cb58ad01f0 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 1 Nov 2024 20:13:37 +0000 Subject: [PATCH 3/6] bazel/ --- bazel/engflow-bazel-credential-helper.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bazel/engflow-bazel-credential-helper.sh diff --git a/bazel/engflow-bazel-credential-helper.sh b/bazel/engflow-bazel-credential-helper.sh new file mode 100755 index 000000000..c6c1bd339 --- /dev/null +++ b/bazel/engflow-bazel-credential-helper.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Bazel expects the helper to read stdin. +# See https://github.com/bazelbuild/bazel/pull/17666 +cat /dev/stdin > /dev/null + +# `GITHUB_TOKEN` is provided as a secret. +echo "{\"headers\":{\"Authorization\":[\"Bearer ${GITHUB_TOKEN}\"]}}" From 0d7e9f320d1756de79e7ace2fb9b2aaf7897bf96 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 1 Nov 2024 20:21:05 +0000 Subject: [PATCH 4/6] .github/ --- .github/workflows/nighthawk-checks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nighthawk-checks.yml b/.github/workflows/nighthawk-checks.yml index 3b14986be..ef6684c6c 100644 --- a/.github/workflows/nighthawk-checks.yml +++ b/.github/workflows/nighthawk-checks.yml @@ -7,6 +7,9 @@ on: pull_request: jobs: + permissions: + contents: read + packages: read check: runs-on: envoy-x64-medium strategy: From 710fc6115c4fd86f968d1becde5d828bfeba4d46 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 1 Nov 2024 20:24:36 +0000 Subject: [PATCH 5/6] .github/ --- .github/workflows/nighthawk-checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nighthawk-checks.yml b/.github/workflows/nighthawk-checks.yml index ef6684c6c..3d29d404a 100644 --- a/.github/workflows/nighthawk-checks.yml +++ b/.github/workflows/nighthawk-checks.yml @@ -7,10 +7,10 @@ on: pull_request: jobs: - permissions: - contents: read - packages: read check: + permissions: + contents: read + packages: read runs-on: envoy-x64-medium strategy: fail-fast: false From bef5f97601d5a5c69d3e4c139fbfba69845b6601 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 1 Nov 2024 20:26:21 +0000 Subject: [PATCH 6/6] .github/ --- .github/workflows/nighthawk-checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nighthawk-checks.yml b/.github/workflows/nighthawk-checks.yml index 3d29d404a..248036de3 100644 --- a/.github/workflows/nighthawk-checks.yml +++ b/.github/workflows/nighthawk-checks.yml @@ -24,3 +24,5 @@ jobs: --config=remote-envoy-engflow \ --@envoy//tools/cat:target=//:hello \ @envoy//tools/cat + env: + GITHUB_TOKEN: ${{ github.token }}