Skip to content

Commit f4eaca7

Browse files
authored
Merge branch 'main' into feature/update-rust
2 parents 721f8c2 + eaa1c4e commit f4eaca7

15 files changed

+74
-59
lines changed

.devcontainer/cpp/Dockerfile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ ARG BATS_VERSION=1.11.0
44
ARG CCACHE_VERSION=4.11
55
ARG CLANG_VERSION=18
66
ARG CPM_VERSION=0.40.2
7-
ARG DOCKER_VERSION=27.3.1
87
ARG INCLUDE_WHAT_YOU_USE_VERSION=0.22
98
ARG XWIN_VERSION=0.6.5
109

@@ -32,11 +31,11 @@ RUN python3 -m pip install --break-system-packages --require-hashes --no-cache-d
3231
&& rm -rf /tmp/requirements.txt
3332

3433
# Set default environment options for CMake and ccache
35-
ENV CCACHE_DIR=/cache/.ccache
36-
ENV CMAKE_EXPORT_COMPILE_COMMANDS="On"
37-
ENV CMAKE_GENERATOR="Ninja"
38-
ENV CONAN_HOME=/opt/conan
39-
ENV CPM_SOURCE_CACHE=/cache/.cpm-cache
34+
ENV CCACHE_DIR=/cache/.ccache \
35+
CMAKE_EXPORT_COMPILE_COMMANDS="On" \
36+
CMAKE_GENERATOR="Ninja" \
37+
CONAN_HOME=/opt/conan \
38+
CPM_SOURCE_CACHE=/cache/.cpm-cache
4039

4140
# Install clang toolchain and mull mutation testing framework
4241
COPY .devcontainer/cpp/apt-requirements-clang.json /tmp/apt-requirements-clang.json
@@ -58,11 +57,6 @@ RUN mkdir /opt/gcc-arm-none-eabi \
5857
&& wget -qO - "https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-$(uname -m)-arm-none-eabi.tar.xz" | tar --exclude='*arm-none-eabi-gdb*' --exclude='share' --strip-components=1 -xJC /opt/gcc-arm-none-eabi
5958
ENV PATH="$PATH:/opt/gcc-arm-none-eabi/bin"
6059

61-
# Install docker-cli for Docker-from-Docker tools
62-
RUN wget -qO - "https://download.docker.com/linux/static/stable/$(uname -m)/docker-${DOCKER_VERSION}.tgz" | tar xz -C /tmp \
63-
&& mv /tmp/docker/docker /usr/local/bin/ \
64-
&& rm -rf /tmp/docker
65-
6660
# Install bats
6761
RUN batstmp="$(mktemp -d /tmp/bats-core-${BATS_VERSION}.XXXX)" \
6862
&& wget -qO - https://github.com/bats-core/bats-core/archive/refs/tags/v${BATS_VERSION}.tar.gz | tar xz -C "${batstmp}" \

.devcontainer/cpp/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
"CONTAINER_FLAVOR": "cpp",
99
"NODE_EXTRA_CA_CERTS": "/usr/local/share/ca-certificates/Cisco_Umbrella_Root_CA.crt"
1010
},
11-
"mounts": [
12-
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
13-
],
1411
"features": {
1512
"ghcr.io/devcontainers/features/desktop-lite:1": {},
1613
"ghcr.io/devcontainers/features/github-cli:1": {},

.devcontainer/rust/devcontainer-metadata-vscode.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"extensions": [
88
"mhutchie.git-graph@1.30.0",
99
"ms-vsliveshare.vsliveshare@1.0.5948",
10-
"rust-lang.rust-analyzer@0.3.2490",
10+
"rust-lang.rust-analyzer@0.3.2500",
1111
"tamasfe.even-better-toml@0.21.2",
1212
"usernamehw.errorlens@3.26.0"
1313
]

.devcontainer/rust/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"remoteEnv": {
88
"CONTAINER_FLAVOR": "rust"
99
},
10-
"mounts": [
11-
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
12-
],
1310
"customizations": {
1411
"vscode": {
1512
"settings": {

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ permissions: {}
1616
jobs:
1717
build-push-test:
1818
uses: ./.github/workflows/wc-build-push-test.yml
19-
secrets: inherit
19+
secrets:
20+
TEST_GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
21+
TEST_GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
22+
TEST_GITHUB_PASSWORD: ${{ secrets.TEST_GITHUB_PASSWORD }}
23+
TEST_GITHUB_TOTP_SECRET: ${{ secrets.TEST_GITHUB_TOTP_SECRET }}
2024
permissions:
2125
actions: read
2226
attestations: write

.github/workflows/pr-conventional-title.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
doesn't start with an uppercase character.
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
- uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
32+
- uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943 # v2.9.3
3333
if: always() && steps.pr-title.outputs.error_message != null
3434
with:
3535
header: pr-title-lint-error
@@ -43,7 +43,7 @@ jobs:
4343
${{ steps.pr-title.outputs.error_message }}
4444
4545
- if: steps.pr-title.outputs.error_message == null
46-
uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
46+
uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943 # v2.9.3
4747
with:
4848
header: pr-title-lint-error
4949
delete: true

.github/workflows/release-build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ permissions: {}
1717
jobs:
1818
build-push-test:
1919
uses: ./.github/workflows/wc-build-push-test.yml
20-
secrets: inherit
20+
secrets:
21+
TEST_GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
22+
TEST_GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }}
23+
TEST_GITHUB_PASSWORD: ${{ secrets.TEST_GITHUB_PASSWORD }}
24+
TEST_GITHUB_TOTP_SECRET: ${{ secrets.TEST_GITHUB_TOTP_SECRET }}
2125
permissions:
2226
actions: read
2327
attestations: write
@@ -31,6 +35,8 @@ jobs:
3135
enable-cache: false
3236
apply-release-notes-template:
3337
runs-on: ubuntu-latest
38+
permissions:
39+
contents: write
3440
steps:
3541
- uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
3642
with:
@@ -54,6 +60,8 @@ jobs:
5460
matrix:
5561
flavor: [cpp, rust]
5662
runs-on: ubuntu-latest
63+
permissions:
64+
contents: write
5765
needs: [build-push-test, apply-release-notes-template]
5866
env:
5967
CONTAINER_FLAVOR: ${{ matrix.flavor }}

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
contents: write
2222
pull-requests: write
2323
steps:
24-
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
24+
- uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
2525
with:
2626
egress-policy: audit
2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/vulnerability-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
2121
with:
2222
egress-policy: audit
23-
- uses: crazy-max/ghaction-container-scan@74ce8ef8146e9632a852a8f79744bbcab1a527ee # v3.1.0
23+
- uses: crazy-max/ghaction-container-scan@4d8e0acba576e46016cbd65b9ecfc604e85e3990 # v3.2.0
2424
id: scan
2525
with:
2626
image: ghcr.io/${{ github.repository }}-${{ matrix.flavor }}:latest

.github/workflows/wc-acceptance-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
flavor:
88
required: true
99
type: string
10+
secrets:
11+
TEST_GITHUB_TOKEN:
12+
required: true
13+
TEST_GITHUB_USER:
14+
required: true
15+
TEST_GITHUB_PASSWORD:
16+
required: true
17+
TEST_GITHUB_TOTP_SECRET:
18+
required: true
1019

1120
concurrency:
1221
group: ${{ github.workflow }}

0 commit comments

Comments
 (0)