Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f68e126
Create docker-publish.yml
mm-psy Dec 1, 2025
ce133d0
Update cron schedule to nightly and add Docker metadata tags
mm-psy Dec 1, 2025
ab3eac5
Update Docker build context to source/AAS.TwinEngine.DataEngine
mm-psy Dec 1, 2025
f0a85a9
Update Docker build context and specify Dockerfile path
mm-psy Dec 1, 2025
ddb7c3b
Merge pull request #25 from mm-psy/mm-psy-docker
mm-psy Dec 1, 2025
d48a4f6
Update docker-publish.yml
mm-psy Dec 1, 2025
28f5df6
Bump actions/setup-dotnet from 4.3.1 to 5.0.1 (#11)
dependabot[bot] Dec 1, 2025
5ced613
Revert "Bump actions/setup-dotnet from 4.3.1 to 5.0.1 (#11)" (#26)
mm-psy Dec 1, 2025
f07de4d
Bump docker/build-push-action from 5.0.0 to 6.18.0 (#27)
dependabot[bot] Dec 2, 2025
201cea7
Bump actions/checkout from 4 to 6 (#30)
dependabot[bot] Dec 2, 2025
bd9c421
Bump docker/metadata-action from 5.0.0 to 5.10.0 (#28)
dependabot[bot] Dec 2, 2025
9e90ccc
Create sbom.yml (#24)
mm-psy Dec 2, 2025
bdac82f
Update sbom.yml
mm-psy Dec 2, 2025
95837ca
Update docker-publish.yml to support multiple branches for push and p…
mm-psy Dec 2, 2025
da910df
Update docker-publish.yml (#32)
mm-psy Dec 5, 2025
58d0f05
Update docker-publish.yml
mm-psy Dec 5, 2025
7d8e328
Update docker-publish.yml (#33)
mm-psy Dec 5, 2025
4c266cd
Bump actions/setup-dotnet from 4.3.1 to 5.0.1 (#29)
dependabot[bot] Dec 5, 2025
38977e3
Bump actions/upload-artifact from 4.6.1 to 5.0.0 (#34)
dependabot[bot] Dec 5, 2025
b9d77e5
Bump github/codeql-action from 3.31.2 to 4.31.6 (#35)
dependabot[bot] Dec 5, 2025
f2ab891
Bump docker/login-action from 3.0.0 to 3.6.0 (#36)
dependabot[bot] Dec 5, 2025
382b441
Bump actions/checkout from 4.3.0 to 6.0.1 (#37)
dependabot[bot] Dec 5, 2025
26b1564
Bump docker/setup-buildx-action from 3.0.0 to 3.11.1 (#38)
dependabot[bot] Dec 5, 2025
ed3a283
Update docker-publish.yml
mm-psy Dec 5, 2025
ce397e4
Update docker-publish.yml (#39)
mm-psy Dec 8, 2025
371a32b
Update docker-publish.yml
mm-psy Dec 8, 2025
c618297
Update sbom.yml
mm-psy Dec 8, 2025
51edbcf
Update dotnet.yml
mm-psy Dec 8, 2025
77a354b
Update dotnet.yml
mm-psy Dec 8, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 'Dependency Review'
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
Expand Down
112 changes: 112 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Docker

# 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.

on:
schedule:
- cron: '31 22 * * *'
push:
branches: [ "main", "release-*" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main", "release-*" ]

permissions:
contents: read

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

# # Install the cosign tool except on PR
# # https://github.com/sigstore/cosign-installer
# - name: Install cosign
# if: github.event_name != 'pull_request'
# uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0
# with:
# cosign-release: 'v2.2.4'

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=schedule,enable=true,priority=1000,pattern=nightly
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=pr
type=raw,value=latest,enable=${{ startsWith(github.ref, format('refs/tags/{0}', vars.VERSION_PATTERN))}}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
sbom: true
provenance: mode=max
context: ./source
file: source/AAS.TwinEngine.DataEngine/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# # Sign the resulting Docker image digest except on PRs.
# # This will only write to the public Rekor transparency log when the Docker
# # repository is public to avoid leaking data. If you would like to publish
# # transparency data even for private images, pass --force to cosign below.
# # https://github.com/sigstore/cosign
# - name: Sign the published Docker image
# if: ${{ github.event_name != 'pull_request' }}
# env:
# # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
# TAGS: ${{ steps.meta.outputs.tags }}
# DIGEST: ${{ steps.build-and-push.outputs.digest }}
# # This step uses the identity token to provision an ephemeral certificate
# # against the sigstore community Fulcio instance.
# run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
17 changes: 11 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore --locked-mode
working-directory: source
- name: Build
run: dotnet build --no-restore
run: dotnet build --no-restore --configuration Release ../source/AAS.TwinEngine.DataEngine.sln
working-directory: source
- name: Run tests with code coverage
run: |
dotnet test ../source/AAS.TwinEngine.DataEngine.UnitTests/AAS.TwinEngine.DataEngine.UnitTests.csproj \
--configuration Release \
--settings ../source/coverlet.runsettings \
--collect:"XPlat Code Coverage" \
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura
working-directory: source
# - name: Test
# run: dotnet test --no-build --verbosity normal
# working-directory: source
29 changes: 29 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: SBOM Generation

on:
push:
branches: [ "main", "release-*" ]
tags: [ 'v*.*.*' ]

permissions:
contents: read

jobs:
generate-sbom:
permissions:
contents: write

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Generate SBOM
run: docker run --rm -v /tmp:/tmp -v $(pwd):/app:rw -t ghcr.io/cyclonedx/cdxgen -r /app -o /tmp/bom.json

- name: Upload SBOM artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: sbom
path: /tmp/bom.json
4 changes: 2 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

Expand Down Expand Up @@ -73,6 +73,6 @@ jobs:
# 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@5d5cd550d3e189c569da8f16ea8de2d821c9bf7a # v3.31.2
uses: github/codeql-action/upload-sarif@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
with:
sarif_file: results.sarif
Loading