Skip to content

Commit 1c3cfdf

Browse files
committed
add git token to the update
1 parent 34898b4 commit 1c3cfdf

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.
@@ -51,9 +51,10 @@ for group in "${!BUILD_TARGET_GROUPS[@]}"; do
5151
log_file="${LOG_DIR}/${group}.log"
5252
# Log build group banner only to stdout/stderr (not into summary table file)
5353
echo "--- Building group: ${group} ---"
54+
start_ts=$(date +%s)
55+
echo "bazel build --config "${CONFIG}" ${targets} --verbose_failures"
5456
# GitHub Actions log grouping start
5557
echo "::group::Bazel build (${group})"
56-
start_ts=$(date +%s)
5758
set +e
5859
bazel build --config "${CONFIG}" ${targets} --verbose_failures 2>&1 | tee "$log_file"
5960
build_status=${PIPESTATUS[0]}

0 commit comments

Comments
 (0)