You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/10/11 19:04:32 UTC

[logging-log4j-jmx-gui] branch main updated: Fix Scorecards analysis

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

pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j-jmx-gui.git


The following commit(s) were added to refs/heads/main by this push:
     new c534e59  Fix Scorecards analysis
c534e59 is described below

commit c534e59f73e098b6b53c443d4101103b47730928
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Oct 11 21:04:23 2023 +0200

    Fix Scorecards analysis
---
 .github/workflows/scorecards-analysis.yml | 42 +++----------------------------
 1 file changed, 4 insertions(+), 38 deletions(-)

diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml
index 17aaaca..e09189e 100644
--- a/.github/workflows/scorecards-analysis.yml
+++ b/.github/workflows/scorecards-analysis.yml
@@ -15,23 +15,19 @@
 # limitations under the License.
 #
 
-name: Scorecards
+name: scorecards-analysis
 
 on:
   branch_protection_rule:
   schedule:
-    - cron: "30 1 * * 6"    # Weekly on Saturdays
+    - cron: "30 1 * * 6"
   push:
-    branches: [ "2.x", "main" ]
-
-permissions: read-all
+    branches: [ main ]
 
 jobs:
 
   analysis:
-
-    name: "Scorecards analysis"
-    runs-on: ubuntu-latest
+    uses: apache/logging-parent/.github/workflows/scorecards-analysis-reusable.yaml@mail
     permissions:
       # Needed to upload the results to the code-scanning dashboard.
       security-events: write
@@ -39,33 +35,3 @@ jobs:
       id-token: write # This is required for requesting the JWT
       contents: read  # This is required for actions/checkout
 
-    steps:
-
-      - name: "Checkout code"
-        uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608   # 4.1.0
-        with:
-          persist-credentials: false
-
-      - name: "Run analysis"
-        uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031    # 2.2.0
-        with:
-          results_file: results.sarif
-          results_format: sarif
-          # A read-only PAT token, which is sufficient for the action to function.
-          # The relevant discussion: https://github.com/ossf/scorecard-action/issues/188
-          repo_token: ${{ secrets.GITHUB_TOKEN }}
-          # Publish the results for public repositories to enable scorecard badges.
-          # For more details: https://github.com/ossf/scorecard-action#publishing-results
-          publish_results: true
-
-      - name: "Upload artifact"
-        uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32    # 3.1.0
-        with:
-          name: SARIF file
-          path: results.sarif
-          retention-days: 5
-
-      - name: "Upload to code-scanning"
-        uses: github/codeql-action/upload-sarif@2cb752a87e96af96708ab57187ab6372ee1973ab    # 2.1.22
-        with:
-          sarif_file: results.sarif