From 8aa38389ab4de40645963bdb612a684d64155840 Mon Sep 17 00:00:00 2001 From: Jamie Snape Date: Wed, 25 Nov 2026 12:24:39 -0500 Subject: [PATCH] Add GitHub Actions lockfile and verification workflow Signed-off-by: Jamie Snape --- .gitattributes | 2 + .github/workflows/actionlint.yml | 2 +- .github/workflows/actions-lock.yml | 67 ++++++++++++++++++++++++++ .github/workflows/actions.lock | 45 +++++++++++++++++ .github/workflows/actions.lock.license | 30 ++++++++++++ .github/workflows/bazel.yml | 36 +++++++------- .github/workflows/buildifier.yml | 2 +- .github/workflows/cmake.yml | 20 ++++---- .github/workflows/codeql.yml | 8 +-- .github/workflows/reuse.yml | 4 +- .github/workflows/yamllint.yml | 2 +- 11 files changed, 181 insertions(+), 37 deletions(-) create mode 100644 .github/workflows/actions-lock.yml create mode 100644 .github/workflows/actions.lock create mode 100644 .github/workflows/actions.lock.license diff --git a/.gitattributes b/.gitattributes index edc26bf..6a3e148 100644 --- a/.gitattributes +++ b/.gitattributes @@ -54,6 +54,7 @@ *.imp text linguist-language=json whitespace-2 *.json text whitespace-2 *.license text linguist-documentation whitespace-0 +*.lock text linguist-generated *.md text diff=markdown whitespace-md *.pc.in text whitespace-2 *.txt text @@ -71,6 +72,7 @@ .gitattributes text export-ignore whitespace-2 .gitignore text export-ignore whitespace-2 .zenodo.json export-ignore linguist-documentation +actions.lock linguist-language=YAML whitespace-4 Brewfile text diff=ruby export-ignore whitespace-4 CMakeLists.txt whitespace-2 CODEOWNERS text whitespace-2 diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 1e1160d..84854c6 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -78,7 +78,7 @@ jobs: DEBIAN_FRONTEND: noninteractive shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: add problem matcher diff --git a/.github/workflows/actions-lock.yml b/.github/workflows/actions-lock.yml new file mode 100644 index 0000000..e9a3550 --- /dev/null +++ b/.github/workflows/actions-lock.yml @@ -0,0 +1,67 @@ +# +# actions-lock.yml +# AVO2 Library +# +# SPDX-FileCopyrightText: 2010 University of North Carolina at Chapel Hill +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Please send all bug reports to . +# +# The authors may be contacted via: +# +# Jur van den Berg, Jamie Snape, Stephen J. Guy, and Dinesh Manocha +# Dept. of Computer Science +# 201 S. Columbia St. +# Frederick P. Brooks, Jr. Computer Science Bldg. +# Chapel Hill, N.C. 27599-3175 +# United States of America +# +# +# + +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json +--- +name: actions-lock + +on: # yamllint disable-line rule:truthy + push: + branches: + - main + pull_request: + branches: + - main + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + verify: + name: verify + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v7.0.1 + - name: setup + run: gh extension install github/gh-actions-lock + env: + GH_TOKEN: ${{ github.token }} + - name: actions-lock verify + run: gh actions-lock --verify + env: + GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..f3cfe8c --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,45 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/actionlint.yml': + - 'actions/checkout@v7.0.1' + '.github/workflows/actions-lock.yml': + - 'actions/checkout@v7.0.1' + '.github/workflows/bazel.yml': + - 'actions/cache@v6.1.0' + - 'actions/checkout@v7.0.1' + '.github/workflows/buildifier.yml': + - 'actions/checkout@v7.0.1' + '.github/workflows/cmake.yml': + - 'actions/checkout@v7.0.1' + '.github/workflows/codeql.yml': + - 'actions/checkout@v7.0.1' + - 'github/codeql-action@v4.39.5' + '.github/workflows/reuse.yml': + - 'actions/checkout@v7.0.1' + - 'fsfe/reuse-action@v6.0.0' + '.github/workflows/yamllint.yml': + - 'actions/checkout@v7.0.1' +dependencies: + 'actions/cache@v6.1.0': + ref: 'v6.1.0' + commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + owner_id: 44036562 + repo_id: 215566462 + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'fsfe/reuse-action@v6.0.0': + ref: 'v6.0.0' + commit: 'sha1-676e2d560c9a403aa252096d99fcab3e1132b0f5' + owner_id: 27927890 + repo_id: 244390200 + 'github/codeql-action@v4.39.5': + ref: 'v4.39.5' + commit: 'sha1-915412ff23e8b7659517e607487dbeae018f2934' + owner_id: 9919 + repo_id: 259445878 diff --git a/.github/workflows/actions.lock.license b/.github/workflows/actions.lock.license new file mode 100644 index 0000000..3ccac94 --- /dev/null +++ b/.github/workflows/actions.lock.license @@ -0,0 +1,30 @@ +actions.lock +AVO2 Library + +SPDX-FileCopyrightText: 2010 University of North Carolina at Chapel Hill +SPDX-License-Identifier: Apache-2.0 + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Please send all bug reports to . + +The authors may be contacted via: + +Jur van den Berg, Jamie Snape, Stephen J. Guy, and Dinesh Manocha +Dept. of Computer Science +201 S. Columbia St. +Frederick P. Brooks, Jr. Computer Science Bldg. +Chapel Hill, N.C. 27599-3175 +United States of America + + diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index 263a1a6..efcaeea 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -83,11 +83,11 @@ jobs: echo "gcc=$(gcc -dumpfullversion -dumpversion)" >> "$GITHUB_OUTPUT" shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~/.cache/bazel @@ -131,11 +131,11 @@ jobs: echo "gcc=$(gcc -dumpfullversion -dumpversion)" >> "$GITHUB_OUTPUT" shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~/.cache/bazel @@ -180,11 +180,11 @@ jobs: echo "gcc=$(gcc -dumpfullversion -dumpversion)" >> "$GITHUB_OUTPUT" shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~/.cache/bazel @@ -217,11 +217,11 @@ jobs: HOMEBREW_NO_INSTALL_CLEANUP: 1 shell: zsh -efuo pipefail {0} - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~/Library/Caches/bazel @@ -266,11 +266,11 @@ jobs: echo "gcc=$(gcc -dumpfullversion -dumpversion)" >> "$GITHUB_OUTPUT" shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~/.cache/bazel @@ -319,11 +319,11 @@ jobs: DEBIAN_FRONTEND: noninteractive shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~/.cache/bazel @@ -372,11 +372,11 @@ jobs: DEBIAN_FRONTEND: noninteractive shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~/.cache/bazel @@ -466,11 +466,11 @@ jobs: [System.Environment]::GetEnvironmentVariable("Path", "User")) shell: pwsh - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~\AppData\Local\bazel-cache @@ -557,11 +557,11 @@ jobs: Add-Content $env:GITHUB_PATH (Join-Path $env:LOCALAPPDATA 'Programs\bazelisk') shell: pwsh - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: cache bazel - uses: actions/cache@v6 + uses: actions/cache@v6.1.0 with: path: | ~\AppData\Local\bazel-cache diff --git a/.github/workflows/buildifier.yml b/.github/workflows/buildifier.yml index 0acf161..8da94e8 100644 --- a/.github/workflows/buildifier.yml +++ b/.github/workflows/buildifier.yml @@ -80,7 +80,7 @@ jobs: DEBIAN_FRONTEND: noninteractive shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: buildifier diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 3f2f073..7e53f73 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -80,7 +80,7 @@ jobs: rm -rf /var/cache/yum shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -133,7 +133,7 @@ jobs: pkgconf) shell: sh - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -180,7 +180,7 @@ jobs: /var/lib/pacman/sync/* shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -230,7 +230,7 @@ jobs: rm -rf /var/cache/yum shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -275,7 +275,7 @@ jobs: HOMEBREW_NO_INSTALL_CLEANUP: 1 shell: zsh -efuo pipefail {0} - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -323,7 +323,7 @@ jobs: zypper -n -q cc -a shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -378,7 +378,7 @@ jobs: DEBIAN_FRONTEND: noninteractive shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -433,7 +433,7 @@ jobs: DEBIAN_FRONTEND: noninteractive shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -529,7 +529,7 @@ jobs: [System.Environment]::GetEnvironmentVariable("Path", "User")) shell: pwsh - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package @@ -626,7 +626,7 @@ jobs: [System.Environment]::GetEnvironmentVariable("Path", "User")) shell: pwsh - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: build test package diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8d4dc2e..0c39e7f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -60,12 +60,12 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 - name: initialize codeql - uses: github/codeql-action/init@v4 + uses: github/codeql-action/init@v4.39.5 with: languages: cpp - name: autobuild - uses: github/codeql-action/autobuild@v4 + uses: github/codeql-action/autobuild@v4.39.5 - name: perform codeql analysis - uses: github/codeql-action/analyze@v4 + uses: github/codeql-action/analyze@v4.39.5 diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index d5a4856..715d6ed 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -59,8 +59,8 @@ jobs: timeout-minutes: 10 steps: - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: reuse lint - uses: fsfe/reuse-action@v6 + uses: fsfe/reuse-action@v6.0.0 diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index ec1fe8c..c98ac6a 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -74,7 +74,7 @@ jobs: DEBIAN_FRONTEND: noninteractive shell: bash - name: checkout - uses: actions/checkout@v7 + uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: yamllint