Skip to content
Merged
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
7 changes: 6 additions & 1 deletion .github/workflows/_build_comps_base_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# SPDX-License-Identifier: Apache-2.0

name: Build Comps Base Image
permissions: read-all

permissions:
attestations: read
models: read
security-events: read

on:
workflow_call:
inputs:
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/_build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@
# SPDX-License-Identifier: Apache-2.0

name: Build Images
permissions: read-all
permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read
on:
workflow_call:
inputs:
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/_example-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@
# SPDX-License-Identifier: Apache-2.0

name: Example jobs
permissions: read-all
permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read
on:
workflow_call:
inputs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/_get-image-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Get Image List
permissions: read-all
permissions:
contents: read
on:
workflow_call:
inputs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/_gmc-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

# 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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/_gmc-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Build and deploy GMC system on call and manual

permissions:
contents: read
on:
workflow_dispatch:
inputs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Update Docker Hub Description
permissions:
contents: read
on:
schedule:
- cron: "0 0 * * 0"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/manual-docker-clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Clean up container on manual event
permissions:
contents: read
on:
workflow_dispatch:
inputs:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/manual-example-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
# SPDX-License-Identifier: Apache-2.0

name: Examples CD workflow on manual event

permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -51,7 +69,6 @@ on:
required: false
type: boolean

permissions: read-all
jobs:
get-test-matrix:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/manual-freeze-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Freeze OPEA images release tag

permissions:
contents: read
on:
workflow_dispatch:
inputs:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/manual-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
# SPDX-License-Identifier: Apache-2.0

name: Build specific images on manual event
permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read
on:
workflow_dispatch:
inputs:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/manual-reset-local-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
# SPDX-License-Identifier: Apache-2.0

name: Clean up Local Registry on manual event
permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read
on:
workflow_dispatch:
inputs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/mix-trellix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Trellix Command Line Scanner

permissions:
contents: read
on:
workflow_dispatch:
schedule:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/nightly-docker-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Nightly build/publish latest docker images
permissions:
security-events: read

on:
schedule:
Expand Down Expand Up @@ -33,12 +35,32 @@ jobs:
echo "PUBLISH_TAGS=$PUBLISH_TAGS" >> $GITHUB_OUTPUT

build-comps-base:
permissions:
attestations: read
models: read
security-events: read
needs: [get-build-matrix]
uses: ./.github/workflows/_build_comps_base_image.yml
with:
node: gaudi

build-images:
permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read
needs: [get-build-matrix, build-comps-base]
strategy:
matrix:
Expand All @@ -53,6 +75,22 @@ jobs:

test-example:
needs: [get-build-matrix]
permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read
if: ${{ needs.get-build-matrix.outputs.examples_json != '' }}
strategy:
matrix:
Expand All @@ -69,6 +107,8 @@ jobs:

get-image-list:
needs: [get-build-matrix]
permissions:
contents: read
uses: ./.github/workflows/_get-image-list.yml
with:
examples: ${{ needs.get-build-matrix.outputs.EXAMPLES }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-chart-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: E2E Test with Helm Charts

permissions:
contents: read
on:
pull_request_target:
branches: [main]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-check-duplicated-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Check Duplicated Images

permissions:
contents: read
on:
pull_request:
branches: [main]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-code-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# SPDX-License-Identifier: Apache-2.0

name: Code Scan

permissions:
contents: read
security-events: write
on:
pull_request:
branches: [main]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-docker-compose-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

name: E2E test with docker compose

permissions:
contents: read

on:
pull_request_target:
branches: ["main", "*rc"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Compose file and dockerfile path checking

permissions:
contents: read
on:
pull_request:
branches: [main]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-link-path-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

name: Check hyperlinks and relative path validity

permissions:
contents: read

on:
pull_request:
branches: [main]
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/push-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
# Test
name: Build latest images on push event

permissions:
actions: read
contents: read
checks: read
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
security-events: read
id-token: write
attestations: read
models: read

on:
push:
branches: [ 'main' ]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/push-images-path-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@

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:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-infra-issue-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- "**/docker_compose/**/compose*.yaml"

name: Create an issue to GenAIInfra on push

permissions:
contents: read

jobs:
job1:
name: Create issue
Expand Down
Loading