You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2026/09/04 07:34:08 UTC

(myfaces-tobago) branch tobago-4.x updated: ci(github): dependency check

This is an automated email from the ASF dual-hosted git repository.

henningn pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-4.x by this push:
     new c447de83a5 ci(github): dependency check
c447de83a5 is described below

commit c447de83a5b5ae50763a0e8cb873492a3ba444fe
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Sep 4 09:32:51 2026 +0200

    ci(github): dependency check
    
    Separate job for updating dependency check DB, so a manual update is possible.
    
    Add a separate job for the branch "tobago-4.x" because the action/cache mechanism prefers a cache from the same branch. If the CVE update job is only in the main branch available, the dependency-check might have outdated data in the tobago-4.x branch.
---
 .github/workflows/dependency-check-update.yml | 45 +++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/.github/workflows/dependency-check-update.yml b/.github/workflows/dependency-check-update.yml
new file mode 100644
index 0000000000..b7ff438142
--- /dev/null
+++ b/.github/workflows/dependency-check-update.yml
@@ -0,0 +1,45 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+#
+#   http://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.
+#
+
+name: Dependency-Check DB Update
+
+on:
+  schedule:
+    - cron: '0 2 * * *'
+  workflow_dispatch:
+
+jobs:
+  dependency-check-db-update:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v7
+        with:
+          persist-credentials: false
+      - name: Set up JDK 21
+        uses: actions/setup-java@v6.0.0
+        with:
+          distribution: 'temurin'
+          java-version: '21'
+      - name: Cache Maven packages
+        uses: actions/cache@v6
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2
+      - name: Update Dependency-Check database
+        run: mvn -B dependency-check:update-only -DnvdApiKey=${{ secrets.NIST_NVD_API_KEY }} -f pom.xml