Compare commits

..

3 Commits

Author SHA1 Message Date
Sun, Xuehao
0f4bdbeb7d rename token
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
2025-05-20 18:50:22 -07:00
pre-commit-ci[bot]
3a3c1d17d4 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-05-21 01:41:38 +00:00
Sun, Xuehao
f8f3998513 Create scorecard.yml 2025-05-21 09:40:41 +08:00
20 changed files with 92 additions and 46 deletions

View File

@@ -3,8 +3,7 @@
# This workflow will only test GMC pipeline and will not install GMC any more
name: Single GMC E2e Test For CD Workflow Call
permissions:
contents: read
on:
workflow_call:
inputs:

View File

@@ -2,8 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: Build and deploy GMC system on call and manual
permissions:
contents: read
on:
workflow_dispatch:
inputs:

View File

@@ -2,8 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
name: Update Docker Hub Description
permissions:
contents: read
on:
schedule:
- cron: "0 0 * * 0"

View File

@@ -2,8 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
name: Clean up container on manual event
permissions:
contents: read
on:
workflow_dispatch:
inputs:

View File

@@ -2,8 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: Freeze OPEA images release tag
permissions:
contents: read
on:
workflow_dispatch:
inputs:

View File

@@ -2,8 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
name: Build specific images on manual event
permissions:
contents: read
on:
workflow_dispatch:
inputs:

View File

@@ -2,8 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
name: Clean up Local Registry on manual event
permissions:
contents: read
on:
workflow_dispatch:
inputs:

View File

@@ -2,8 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: Trellix Command Line Scanner
permissions:
contents: read
on:
workflow_dispatch:
schedule:

View File

@@ -2,8 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: Nightly build/publish latest docker images
permissions:
contents: read
on:
schedule:
- cron: "30 14 * * 1-5" # UTC time

View File

@@ -2,8 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: E2E Test with Helm Charts
permissions:
contents: read
on:
pull_request_target:
branches: [main]

View File

@@ -2,8 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: Check Duplicated Images
permissions:
contents: read
on:
pull_request:
branches: [main]

View File

@@ -2,9 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: Code Scan
permissions:
contents: read
security-events: write
on:
pull_request:
branches: [main]

View File

@@ -3,9 +3,6 @@
name: E2E test with docker compose
permissions:
contents: read
on:
pull_request_target:
branches: ["main", "*rc"]

View File

@@ -2,8 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
name: Compose file and dockerfile path checking
permissions:
contents: read
on:
pull_request:
branches: [main]

View File

@@ -3,9 +3,6 @@
name: Check hyperlinks and relative path validity
permissions:
contents: read
on:
pull_request:
branches: [main]

View File

@@ -3,9 +3,6 @@
# Test
name: Build latest images on push event
permissions:
contents: read
on:
push:
branches: [ 'main' ]

View File

@@ -3,12 +3,10 @@
name: Check the validity of links in docker_images_list.
permissions:
contents: read
on:
push:
branches: [main]
types: [opened, reopened, ready_for_review, synchronize]
jobs:
check-dockerfile-paths:

View File

@@ -8,10 +8,6 @@ on:
- "**/docker_compose/**/compose*.yaml"
name: Create an issue to GenAIInfra on push
permissions:
contents: read
jobs:
job1:
name: Create issue

81
.github/workflows/scorecard.yml vendored Normal file
View File

@@ -0,0 +1,81 @@
# Copyright (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.
name: Scorecard supply-chain security
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '18 7 * * 3'
push:
branches: [ "main" ]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read
steps:
- name: "Checkout code"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecard on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
repo_token: ${{ secrets.ACTION_TOKEN }}
# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true
# (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore
# file_mode: git
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif

View File

@@ -3,15 +3,13 @@
name: Weekly test all examples on multiple HWs
permissions: read-all
on:
schedule:
- cron: "30 2 * * 6" # UTC time
workflow_dispatch:
env:
EXAMPLES: "CodeTrans" #${{ vars.NIGHTLY_RELEASE_EXAMPLES }}
EXAMPLES: ${{ vars.NIGHTLY_RELEASE_EXAMPLES }}
NODES: "gaudi,xeon,rocm,arc"
jobs: