Skip to content

Commit 88491b6

Browse files
committed
add git token to the update
1 parent a2c4655 commit 88491b6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/test_integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
disk-cache: ${{ github.workflow }}
5252
# Share repository cache between workflows.
5353
repository-cache: true
54-
- name: Bazel build targets
54+
- name: Update known good commits
5555
run: |
5656
echo "::group::get latest commits from main branches"
5757
python3 tools/update_module_latest.py --output known_good.updated.json
@@ -61,6 +61,10 @@ jobs:
6161
python3 tools/update_module_from_known_good.py --known known_good.updated.json
6262
cat score_modules.MODULE.bazel
6363
echo "::endgroup::"
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
- name: Bazel build targets
67+
run: |
6468
./integration_test.sh
6569
- name: Show disk space after build
6670
if: always()

integration_test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -euox pipefail
2+
set -euo pipefail
33

44
# Integration build script.
55
# Captures warning counts for regression tracking.
@@ -52,9 +52,10 @@ for group in "${!BUILD_TARGET_GROUPS[@]}"; do
5252
log_file="${LOG_DIR}/${group}.log"
5353
# Log build group banner only to stdout/stderr (not into summary table file)
5454
echo "--- Building group: ${group} ---"
55+
start_ts=$(date +%s)
56+
echo "bazel build --config "${CONFIG}" ${targets} --verbose_failures"
5557
# GitHub Actions log grouping start
5658
echo "::group::Bazel build (${group})"
57-
start_ts=$(date +%s)
5859
set +e
5960
bazel build --config "${CONFIG}" ${targets} --verbose_failures 2>&1 | tee "$log_file"
6061
build_status=${PIPESTATUS[0]}

0 commit comments

Comments
 (0)