Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C++ Unit CI

Check warning on line 1 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

build.yaml:1: overly broad permissions: default permissions used due to no permissions: block

on:
push:
Expand All @@ -9,13 +9,13 @@
vcpkg_SHA: "2024.09.30"

jobs:
build-ubuntu-focal:

Check warning on line 12 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

build.yaml:12: overly broad permissions: default permissions used due to no permissions: block
name: ubuntu-22.04
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- name: install ninja
run: sudo apt install ninja-build
- uses: actions/checkout@v4

Check failure on line 18 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 18 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:18: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: clone-vcpkg
working-directory: "${{runner.temp}}"
run: >
Expand All @@ -24,7 +24,7 @@
tar -C vcpkg --strip-components=1 -zxf -
- name: cache-vcpkg
id: cache-vcpkg
uses: actions/cache@v4

Check failure on line 27 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 27 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:27: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
# Preserve the vcpkg binary *and* the vcpkg binary cache in the build cache
path: |
Expand All @@ -42,7 +42,7 @@
cmake -S . -B "${{runner.temp}}/build" -GNinja
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_TOOLCHAIN_FILE="${{runner.temp}}/vcpkg/scripts/buildsystems/vcpkg.cmake"
- uses: actions/cache/save@v4

Check failure on line 45 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 45 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:45: unpinned action reference: action is not pinned to a hash (required by blanket policy)
if: always()
with:
path: |
Expand All @@ -57,16 +57,16 @@

# Verify the howto guides compile correctly, they need a special setup to use the
# current version of `functions-framework-cpp` through vcpkg.
build-ubuntu-focal-howto:

Check warning on line 60 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

build.yaml:60: overly broad permissions: default permissions used due to no permissions: block
name: ubuntu-22.04
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- name: install ninja
run: sudo apt install ninja-build
- uses: actions/checkout@v4

Check failure on line 66 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 66 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:66: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: cache-vcpkg
id: cache-vcpkg
uses: actions/cache@v4

Check failure on line 69 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 69 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:69: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
path: |
~/.cache/vcpkg
Expand All @@ -89,7 +89,7 @@
run: >
cmake -S examples/site/howto_local_development -B "${{runner.temp}}/howto_local_development/build" -GNinja
-DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake
- uses: actions/cache/save@v4

Check failure on line 92 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 92 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:92: unpinned action reference: action is not pinned to a hash (required by blanket policy)
if: always()
with:
path: |
Expand All @@ -101,8 +101,8 @@
run: >
cmake --build "${{runner.temp}}/howto_local_development/build"

build-msvc-2019:

Check warning on line 104 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

build.yaml:104: overly broad permissions: default permissions used due to no permissions: block
if: ${{ false }} # TODO(#366) - disable for now

Check warning on line 105 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

obfuscation

build.yaml:105: obfuscated usage of GitHub Actions features: can be replaced by its static evaluation
name: msvc-2019
runs-on: windows-2022
steps:
Expand All @@ -122,7 +122,7 @@

- name: cache-vcpkg
id: cache-vcpkg
uses: actions/cache@v4

Check failure on line 125 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 125 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:125: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
# Preserve the vcpkg binary cache
path: |
Expand All @@ -132,15 +132,15 @@
restore-keys: |
vcpkg-${{ env.vcpkg_SHA }}-build-msvc-2019-2-

- uses: actions/checkout@v4

Check failure on line 135 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 135 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:135: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: ilammy/msvc-dev-cmd@v1

Check failure on line 136 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 136 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:136: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: configure
run: |
cmake -S . -B '${{runner.temp}}/build' -GNinja `
'-DBUILD_TESTING=ON' `
'-DFUNCTIONS_FRAMEWORK_CPP_TEST_EXAMPLES=OFF' `
'-DCMAKE_TOOLCHAIN_FILE=${{runner.temp}}/vcpkg/scripts/buildsystems/vcpkg.cmake'
- uses: actions/cache/save@v4

Check failure on line 143 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

build.yaml:143: unpinned action reference: action is not pinned to a hash (required by blanket policy)
if: always()
with:
path: |
Expand All @@ -152,8 +152,8 @@
working-directory: "${{runner.temp}}/build"
run: ctest --output-on-failure --timeout 60

build-macos:

Check warning on line 155 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

build.yaml:155: overly broad permissions: default permissions used due to no permissions: block
if: ${{ false }} # TODO(#367) - disable for now

Check warning on line 156 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

obfuscation

build.yaml:156: obfuscated usage of GitHub Actions features: can be replaced by its static evaluation
name: macos-10
runs-on: macos-10.15
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
vcpkg_SHA: "2024.09.30"

jobs:
coverage:

Check warning on line 12 in .github/workflows/coverage.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

coverage.yaml:12: overly broad permissions: default permissions used due to no permissions: block
name: coverage
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- name: install tools
run: sudo apt install ninja-build lcov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: install

Check warning on line 1 in .github/workflows/install.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

install.yaml:1: overly broad permissions: default permissions used due to no permissions: block

on:
push:
Expand All @@ -6,9 +6,9 @@
pull_request:

jobs:
static:

Check warning on line 9 in .github/workflows/install.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

install.yaml:9: overly broad permissions: default permissions used due to no permissions: block
name: ubuntu-22.04
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- name: install-dependencies
run: sudo apt install ninja-build libboost-dev libboost-program-options-dev nlohmann-json3-dev libabsl-dev
Expand All @@ -32,7 +32,7 @@

shared:
name: ubuntu-22.04-shared
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- name: install-dependencies
run: >
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
clang-format:
name: clang-format
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v4
- name: clang-format
Expand All @@ -23,7 +23,7 @@ jobs:

cmake-format:
name: cmake-format
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v4
- name: install cmake-format
Expand All @@ -37,7 +37,7 @@ jobs:

generated-files:
name: generated-files
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v4
- name: install ninja
Expand Down
Loading