-
Notifications
You must be signed in to change notification settings - Fork 5
Merge Main branch Into develop #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "nuget" | ||
| target-branch: "develop" | ||
| directory: "/source" | ||
| groups: | ||
| major-minor-patch: | ||
| applies-to: version-updates | ||
| update-types: | ||
| - "major" | ||
| - "minor" | ||
| - "patch" | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 3 | ||
|
|
||
| - package-ecosystem: "docker" | ||
| target-branch: "develop" | ||
| directory: "/source/AAS.TwinEngine.DataEngine" | ||
| groups: | ||
| major-minor-patch: | ||
| applies-to: version-updates | ||
| update-types: | ||
| - "major" | ||
| - "minor" | ||
| - "patch" | ||
| schedule: | ||
| interval: "daily" | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| target-branch: "develop" | ||
| directory: "/" | ||
| groups: | ||
| major-minor-patch: | ||
| applies-to: version-updates | ||
| update-types: | ||
| - "major" | ||
| - "minor" | ||
| - "patch" | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| name: "CodeQL Advanced" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - 'main' | ||
| - 'develop' | ||
| - 'release/**' | ||
| - 'hotfix/**' | ||
| pull_request: | ||
| branches: | ||
| - 'main' | ||
| - 'develop' | ||
| - 'release/**' | ||
| - 'hotfix/**' | ||
| schedule: | ||
| - cron: '30 19 * * 0' | ||
|
|
||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze (${{ matrix.language }}) | ||
| # Runner size impacts CodeQL analysis time. To learn more, please see: | ||
| # - https://gh.io/recommended-hardware-resources-for-running-codeql | ||
| # - https://gh.io/supported-runners-and-hardware-resources | ||
| # - https://gh.io/using-larger-runners (GitHub.com only) | ||
| # Consider using larger runners or machines with greater resources for possible analysis time improvements. | ||
| runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
| permissions: | ||
| # required for all workflows | ||
| security-events: write | ||
|
|
||
| # required to fetch internal or private CodeQL packs | ||
| packages: read | ||
|
|
||
| # only required for workflows in private repositories | ||
| actions: read | ||
| contents: read | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - language: actions | ||
| build-mode: none | ||
| - language: csharp | ||
| build-mode: none | ||
| # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift' | ||
| # Use `c-cpp` to analyze code written in C, C++ or both | ||
| # Use 'java-kotlin' to analyze code written in Java, Kotlin or both | ||
| # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both | ||
| # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, | ||
| # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. | ||
| # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how | ||
| # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
|
|
||
| # Add any setup steps before running the `github/codeql-action/init` action. | ||
| # This includes steps like installing compilers or runtimes (`actions/setup-node` | ||
| # or others). This is typically only required for manual builds. | ||
| # - name: Setup runtime (example) | ||
| # uses: actions/setup-example@v1 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
| # If you wish to specify custom queries, you can do so here or in a config file. | ||
| # By default, queries listed here will override any specified in a config file. | ||
| # Prefix the list here with "+" to use these queries and those in the config file. | ||
|
|
||
| # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
| # queries: security-extended,security-and-quality | ||
|
|
||
| # If the analyze step fails for one of the languages you are analyzing with | ||
| # "We were unable to automatically build your code", modify the matrix above | ||
| # to set the build mode to "manual" for that language. Then modify this step | ||
| # to build your code. | ||
| # ℹ️ Command-line programs to run using the OS shell. | ||
| # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
| - name: Run manual build steps | ||
| if: matrix.build-mode == 'manual' | ||
| shell: bash | ||
| run: | | ||
| echo 'If you are using a "manual" build mode for one or more of the' \ | ||
| 'languages you are analyzing, replace this with the commands to build' \ | ||
| 'your code, for example:' | ||
| echo ' make bootstrap' | ||
| echo ' make release' | ||
| exit 1 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| # Dependency Review Action | ||
| # | ||
| # This Action will scan dependency manifest files that change as part of a Pull Request, | ||
| # surfacing known-vulnerable versions of the packages declared or updated in the PR. | ||
| # Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable | ||
| # packages will be blocked from merging. | ||
| # | ||
| # Source repository: https://github.com/actions/dependency-review-action | ||
| # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement | ||
| name: 'Dependency review' | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - 'main' | ||
| - 'develop' | ||
| - 'release/**' | ||
| - 'hotfix/**' | ||
|
|
||
| # If using a dependency submission action in this workflow this permission will need to be set to: | ||
| # | ||
| # permissions: | ||
| # contents: write | ||
| # | ||
| # https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api | ||
| permissions: | ||
| contents: read | ||
| # Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| dependency-review: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 'Checkout repository' | ||
| 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. | ||
| with: | ||
| retry-on-snapshot-warnings: true | ||
| retry-on-snapshot-warnings-timeout: 60 | ||
| warn-on-openssf-scorecard-level: 5 | ||
| comment-summary-in-pr: always | ||
| allow-dependencies-licenses: | | ||
| pkg:nuget/AasCore.Aas3_0, | ||
| pkg:nuget/AasCore.Aas3.Package | ||
| allow-licenses: | | ||
| Apache-1.0, | ||
| Apache-1.1, | ||
| Apache-2.0, | ||
| BSL-1.0, | ||
| BSD-1-Clause, | ||
| BSD-2-Clause, | ||
| BSD-2-Clause-FreeBSD, | ||
| BSD-2-Clause-NetBSD, | ||
| BSD-3-Clause, | ||
| BSD-3-Clause-Clear, | ||
| BSD-3-Clause-No-Nuclear-License, | ||
| BSD-3-Clause-No-Nuclear-License-2014, | ||
| BSD-3-Clause-No-Nuclear-Warranty, | ||
| BSD-3-Clause-Open-MPI, | ||
| BSD-4-Clause, | ||
| BSD-Protection, | ||
| BSD-Source-Code, | ||
| BSD-3-Clause-Attribution, | ||
| 0BSD, | ||
| BSD-2-Clause-Patent, | ||
| BSD-4-Clause-UC, | ||
| MIT-CMU, | ||
| CC-BY-3.0, | ||
| CC-BY-SA-1.0, | ||
| CC-BY-SA-2.0, | ||
| CC-BY-SA-2.5, | ||
| CC-BY-SA-3.0, | ||
| CC-BY-SA-4.0, | ||
| CC0-1.0, | ||
| WTFPL, | ||
| MIT-enna, | ||
| MIT-feh, | ||
| ISC, | ||
| JSON, | ||
| BSD-3-Clause-LBNL, | ||
| MITNFA, | ||
| MIT, | ||
| MIT-0, | ||
| UPL-1.0, | ||
| NCSA, | ||
| X11, | ||
| Xerox, | ||
| BlueOak-1.0.0, | ||
| CC-BY-4.0, | ||
| MS-PL, | ||
| PostgreSQL, | ||
| Python-2.0, | ||
| SSPL-1.0, | ||
| OFL-1.1, | ||
| Unlicense, | ||
| Unicode-DFS-2016, | ||
| Unicode-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| 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: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - 'develop' | ||
| - 'release/**' | ||
| - 'hotfix/**' | ||
| # Publish semver tags as releases. | ||
| tags: [ 'v**' ] | ||
| pull_request: | ||
| branches: | ||
| - 'main' | ||
| - 'develop' | ||
| - 'release/**' | ||
| - 'hotfix/**' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| # Use docker.io for Docker Hub if empty | ||
| REGISTRY: ghcr.io | ||
| IMAGE_NAME: ${{ github.repository_owner }}/dataengine | ||
| DOCKERFILE_PATH: source/AAS.TwinEngine.DataEngine/Dockerfile | ||
| BUILD_CONTEXT: source | ||
|
|
||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
|
|
||
| # 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=semver,pattern={{raw}} | ||
| type=raw,value=develop-{{sha}},enable=${{startsWith(github.ref, 'refs/heads/develop')}} | ||
| type=raw,value=rc-{{branch}}-{{sha}},enable=${{startsWith(github.ref, 'refs/heads/release/')}} | ||
| type=raw,value={{branch}}-{{sha}},enable=${{startsWith(github.ref, 'refs/heads/hotfix/')}} | ||
| type=ref,event=pr | ||
| type=raw,value=manual-{{branch}}-{{sha}},enable=${{github.event_name == 'workflow_dispatch'}} | ||
|
|
||
| # 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: ${{ env.BUILD_CONTEXT }} | ||
| file: ${{ env.DOCKERFILE_PATH }} | ||
| 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 | ||
|
|
||
|
|
||
| # Extract the pure application SBOM from the artifact stage, we want to handle it separately from the container SBOM | ||
| # This automaticaly re-uses the previously generated stage from cache, so we get the exact sbom from previous build step | ||
| - name: Export Application SBOM from artifact stage | ||
| if: ${{ github.event_name != 'pull_request' }} | ||
| uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 | ||
| with: | ||
| context: ${{ env.BUILD_CONTEXT }} | ||
| file: ${{ env.DOCKERFILE_PATH }} | ||
| target: app-sbom-artifact | ||
| push: false | ||
| outputs: type=local,dest=sbom-output | ||
|
|
||
| # Generate container SBOM. | ||
| - name: Run Trivy in GitHub SBOM mode to generate CycloneDX SBOM for container | ||
| if: ${{ github.event_name != 'pull_request' }} | ||
| uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # 0.33.1 | ||
| with: | ||
| scan-type: 'image' | ||
| format: 'cyclonedx' | ||
| output: 'sbom-output/sbom_container.cyclonedx.json' | ||
| image-ref: ${{ steps.meta.outputs.tags }} | ||
| skip-dirs: '/App' # Skip the /app directory as we handle the content of the application in a seperate SBOM for easier vulnerability management and because trivy misses important fields | ||
|
|
||
| - name: Upload trivy/container AND application SBOMs as a Github artifact | ||
| if: ${{ github.event_name != 'pull_request' }} | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: sbom | ||
| path: '${{ github.workspace }}/sbom-output/' |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / SonarCloud
Read-all and Write-all permissions should not be used