Skip to content
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

chore(v1.0.0-rc.1): merge release into main #124

Merged
merged 55 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2ea617c
Merge pull request #38 from eclipse-tractusx/main
evegufy Feb 16, 2024
f2b33db
Merge pull request #62 from eclipse-tractusx/main
evegufy Mar 6, 2024
5e1eb85
ci(release): fix push of tag triggering release workflow (#63)
evegufy Mar 6, 2024
26b0b4e
feat(helm): move passwords for db dependency to according section
evegufy Mar 16, 2024
089daa5
chore: remove upgrade env file
evegufy Mar 16, 2024
17c2946
chore(helm): rename and update test workflow
evegufy Mar 18, 2024
5a277da
chore(build): rename docker build workflows
evegufy Mar 18, 2024
a2663c1
feat(helm_db-dependency): change image tag to get latest minor updates
evegufy Mar 18, 2024
b00b25f
feat(helm): change ingress according to TRG-5.04
evegufy Mar 18, 2024
913c837
feat(helm): set resource limits
evegufy Mar 18, 2024
7b92236
feat(helm): move health checks to service
evegufy Mar 18, 2024
857b4ee
chore: re-arrange values file
evegufy Mar 18, 2024
660ad6f
feat(helm): consolidate centralidp configuration
evegufy Mar 18, 2024
39b5b69
feat(helm): change image tag retrieval for fallback to appVersion
evegufy Mar 18, 2024
78439b7
chore(sonarcloud): run only on changes to src/**
evegufy Mar 18, 2024
1640fb9
docs(CONTRIBUTING.md): update to contribution details
evegufy Mar 18, 2024
02f259a
chore(pre-checks): run only on changes to src/**
evegufy Mar 18, 2024
5fe6ff9
chore(dependencies-check): align file naming and docs
evegufy Mar 20, 2024
bbee93f
build(deps): bump aquasecurity/trivy-action from 0.14.0 to 0.18.0 (#75)
dependabot[bot] Mar 21, 2024
25811b3
build(deps): bump docker/setup-buildx-action from 2 to 3 (#76)
dependabot[bot] Mar 21, 2024
f7c42fa
build(deps): bump container-tools/kind-action from 1 to 2 (#78)
dependabot[bot] Mar 21, 2024
c768929
build(deps): bump docker/login-action from 2 to 3 (#80)
dependabot[bot] Mar 21, 2024
fd3839b
build(deps): bump peter-evans/dockerhub-description from 3 to 4 (#81)
dependabot[bot] Mar 21, 2024
e9817ff
fix(helm): fix label and username for external database (#72)
evegufy Mar 21, 2024
e0a4b2c
docs: swagger document update (#67)
AnuragNagpure Mar 25, 2024
1a5e9d4
chore(gh-actions): upgrade and change to pinned commit sha
evegufy Mar 27, 2024
3fc0172
chore(dependencies-check): change to preview .NET 9
evegufy Mar 27, 2024
fb9e3c9
feat(net8): upgrade to .net8 (#102)
Phil91 Apr 4, 2024
209a681
chore(helm): add file header
evegufy Apr 4, 2024
f750bdf
chore(helm): remove obsolete value
evegufy Apr 4, 2024
ec4a05e
chore(image-build): change to absolute file paths
evegufy Apr 4, 2024
6447fd8
chore: combine helm chart release and image build
evegufy Apr 4, 2024
4364f46
chore(release-candidate): improve workflow
evegufy Apr 4, 2024
6a4cacd
feat(template): policyhub restrict or operand to access policies (#107)
AnuragNagpure Apr 16, 2024
2ec2470
build(deps): bump actions/cache from 3 to 4 (#90)
dependabot[bot] Apr 16, 2024
177a59e
build(deps): bump aquasecurity/trivy-action from 0.18.0 to 0.19.0 (#98)
dependabot[bot] Apr 16, 2024
7df0a14
build(deps): bump helm/chart-releaser-action from 1.4.1 to 1.6.0 (#99)
dependabot[bot] Apr 16, 2024
cc1744f
build(deps): bump github/codeql-action from 2.22.7 to 3.24.10 (#104)
dependabot[bot] Apr 16, 2024
8155b6d
build(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#100)
dependabot[bot] Apr 16, 2024
2039af0
feat(policy): add value check to post endpoint (#97)
AnuragNagpure Apr 17, 2024
af92c00
build(deps): bump actions/upload-artifact from 4.3.1 to 4.3.2 (#111)
dependabot[bot] Apr 26, 2024
59c62e2
build(deps): bump docker/setup-buildx-action from 3.2.0 to 3.3.0 (#112)
dependabot[bot] Apr 26, 2024
34c1fe3
build(deps): bump checkmarx/kics-github-action from 1.7.0 to 2.0.0 (#…
dependabot[bot] Apr 26, 2024
42995fa
build(deps): bump docker/build-push-action from 3 to 5 (#114)
dependabot[bot] Apr 26, 2024
7623856
build(deps): bump azure/setup-helm from 3.5 to 4 (#115)
dependabot[bot] Apr 26, 2024
10bb931
feat(policy): policy seeding data update (#88)
AnuragNagpure Apr 26, 2024
421202b
feat(bpnl): add bpnl policy handling (#116)
AnuragNagpure Apr 29, 2024
d6dd94e
build(deps): bump amannn/action-semantic-pull-request (#120)
dependabot[bot] Apr 30, 2024
b4bb630
build(deps): bump actions/upload-artifact from 4.3.2 to 4.3.3 (#119)
dependabot[bot] Apr 30, 2024
8d7e254
build(deps): bump actions/checkout from 4.1.2 to 4.1.4 (#118)
dependabot[bot] Apr 30, 2024
ddf50dc
build(deps): bump github/codeql-action from 3.24.10 to 3.25.3 (#117)
dependabot[bot] Apr 30, 2024
d943343
buil(migrations): merge all migrations since the last release (#122)
Phil91 Apr 30, 2024
9f1cb78
chore: release 1.0.0-rc.1
evegufy Apr 30, 2024
828dc66
chore(changelog/v1.0.0-rc.1): release 1.0.0-rc.1 (#123)
github-actions[bot] Apr 30, 2024
9d98425
build(1.0.0-rc.1): bump version and update docs
evegufy Apr 30, 2024
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
86 changes: 0 additions & 86 deletions .github/workflows/chart-release.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: PolicyHub Lint and Test Chart
name: Lint and Test Chart

on:
push:
Expand All @@ -38,7 +38,7 @@ on:
upgrade_from:
description: 'policyhub chart version to upgrade from'
# tbd
default: '0.1.0-rc.2'
default: '0.1.0'
required: false
type: string

Expand All @@ -48,12 +48,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0

- name: Kubernetes KinD Cluster
uses: container-tools/kind-action@v1
uses: container-tools/kind-action@0ad70e2299366b0e1552c7240f4e4567148f723e # v2.0.4
with:
# upgrade version, default (v0.17.0) uses node image v1.21.1 and doesn't work with more recent node image versions
version: v0.20.0
Expand All @@ -62,34 +62,34 @@ jobs:

- name: Build migration image
id: build-migration-image
uses: docker/build-push-action@v3
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: docker/Dockerfile-policy-hub-migrations
file: ./docker/Dockerfile-policy-hub-migrations
push: true
tags: kind-registry:5000/policy-hub-migrations:testing

- name: Build service image
id: build-service-image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: docker/Dockerfile-policy-hub-service
file: ./docker/Dockerfile-policy-hub-service
push: true
tags: kind-registry:5000/policy-hub-service:testing

- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4
with:
version: v3.9.3

- uses: actions/setup-python@v4
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.9'
check-latest: true

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.3.1
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -102,8 +102,8 @@ jobs:
- name: Run chart-testing (lint)
run: ct lint --validate-maintainers=false --check-version-increment=false --target-branch ${{ github.event.repository.default_branch }}

- name: Run service chart-testing (install)
run: ct install --charts charts/policy-hub --config charts/chart-testing-config.yaml --helm-extra-set-args "--set=policyhub.image=kind-registry:5000/policy-hub-service:testing --set=policyhubmigrations.image=kind-registry:5000/policy-hub-migrations:testing"
- name: Run chart-testing (install)
run: ct install --charts charts/policy-hub --config charts/chart-testing-config.yaml --helm-extra-set-args "--set policyhub.image.name=kind-registry:5000/policy-hub-service --set policyhub.image.tag=testing --set policyhubmigrations.image.name=kind-registry:5000/policy-hub-migrations --set policyhubmigrations.image.tag=testing"
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'

# Upgrade the released chart version with the locally available chart
Expand All @@ -112,7 +112,7 @@ jobs:
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev
helm install policy-hub tractusx-dev/policy-hub --version ${{ github.event.inputs.upgrade_from || '0.1.0-rc.2' }} --namespace upgrade --create-namespace
helm install policy-hub tractusx-dev/policy-hub --version ${{ github.event.inputs.upgrade_from || '0.1.0' }} --namespace upgrade --create-namespace
helm dependency update charts/policy-hub
helm upgrade policy-hub charts/policy-hub --set policyhub.image=kind-registry:5000/policy-hub-service:testing --set=policyhubmigrations.image=kind-registry:5000/policy-hub-migrations:testing --namespace upgrade
helm upgrade policy-hub charts/policy-hub --set policyhub.image.name=kind-registry:5000/policy-hub-service --set policyhub.image.tag=testing --set policyhubmigrations.image.name=kind-registry:5000/policy-hub-migrations --set policyhubmigrations.image.tag=testing --namespace upgrade
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@66b90a5db151a8042fa97405c6cf843bbe433f7b # v2.227
uses: github/codeql-action/init@d39d31e687223d841ef683f52467bd88e9b21c14 # v2.227
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -87,7 +87,7 @@ jobs:
# Automates dependency installation for Python, Ruby, and JavaScript, optimizing the CodeQL analysis setup.
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@66b90a5db151a8042fa97405c6cf843bbe433f7b # v2.227
uses: github/codeql-action/autobuild@d39d31e687223d841ef683f52467bd88e9b21c14 # v2.227

# ℹ️ 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
Expand All @@ -100,6 +100,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@66b90a5db151a8042fa97405c6cf843bbe433f7b # v2.227
uses: github/codeql-action/analyze@d39d31e687223d841ef683f52467bd88e9b21c14 # v2.227
with:
category: "/language:${{matrix.language}}"
15 changes: 9 additions & 6 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['7.0']
# change to preview .NET 9 until fix for https://github.com/NuGet/Home/issues/12954 gets released for .NET 8
dotnet-version: ['9.0']

steps:

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: 'temurin'
java-version: '17'

- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: ${{ matrix.dotnet-version }}
# change to preview .NET 9 until fix for https://github.com/NuGet/Home/issues/12954 gets released for .NET 8
dotnet-quality: 'preview'

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Install dependencies
run: dotnet restore src
Expand All @@ -57,7 +60,7 @@ jobs:
run: dotnet list src package --include-transitive --interactive | grep ">" | grep -Pv "\s(Org.Eclipse.TractusX|Microsoft|NuGet|System|runtime|docker|Docker|NETStandard)" | sed -E -e "s/\s+> ([a-zA-Z\.\-]+).+\s([0-9]+\.[0-9]+\.[0-9]+)\s*/nuget\/nuget\/\-\/\1\/\2/g" | awk '!seen[$0]++' > PACKAGES

- name: Generate Dependencies file
run: java -jar ./scripts/download/org.eclipse.dash.licenses-1.1.1-20240213.065029-71.jar PACKAGES -project automotive.tractusx -summary DEPENDENCIES || true
run: java -jar ./scripts/download/org.eclipse.dash.licenses-1.1.1.jar PACKAGES -project automotive.tractusx -summary DEPENDENCIES || true

- name: Check if dependencies were changed
id: dependencies-changed
Expand All @@ -81,7 +84,7 @@ jobs:
if: steps.dependencies-changed.outputs.changed == 'true'

- name: Upload DEPENDENCIES file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
path: DEPENDENCIES
if: steps.dependencies-changed.outputs.changed == 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
security-events: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: KICS scan
uses: checkmarx/kics-github-action@master
uses: checkmarx/kics-github-action@d1b692d84c536f4e8696954ce7aab6818f95f5bc # v2.0.0
with:
# Scanning directory .
path: "."
Expand All @@ -69,7 +69,7 @@ jobs:
# Upload findings to GitHub Advanced Security Dashboard
- name: Upload SARIF file for GitHub Advanced Security Dashboard
if: always()
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
with:
sarif_file: kicsResults/results.sarif

6 changes: 3 additions & 3 deletions .github/workflows/lint-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
- uses: amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e # v5.5.2
id: lint_pr_title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: marocchino/sticky-pull-request-comment@v2
- uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
# When the previous steps fail, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
Expand All @@ -55,7 +55,7 @@ jobs:

# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
with:
header: pr-title-lint-error
delete: true
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: PolicyHub-Migrations
name: Build Migrations Image

on:
push:
Expand Down Expand Up @@ -46,35 +46,35 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=${{ github.sha }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: docker/Dockerfile-policy-hub-migrations
file: ./docker/Dockerfile-policy-hub-migrations
platforms: linux/amd64, linux/arm64
pull: true
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -84,9 +84,9 @@ jobs:
# https://github.com/peter-evans/dockerhub-description
- name: Update Docker Hub description
if: github.event_name != 'pull_request'
uses: peter-evans/dockerhub-description@v3
uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae # v4.0.0
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
readme-filepath: "./docker/notice-policy-hub-migrations.md"
readme-filepath: ./docker/notice-policy-hub-migrations.md
Loading