Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#1 from the-tatanka/fix/security-c…
Browse files Browse the repository at this point in the history
…onfig

Fix security config
  • Loading branch information
carslen authored Dec 8, 2022
2 parents 193ca8b + 5af4cb5 commit 1e58e9b
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 10 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/kics.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright (c) 2021-2022 Contributors to the Eclipse Foundation

# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.

# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# SPDX-License-Identifier: Apache-2.0
---

name: "KICS"

on:
Expand All @@ -22,7 +40,7 @@ jobs:
security-events: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: KICS scan
uses: checkmarx/kics-github-action@master
Expand All @@ -49,7 +67,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@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: kicsResults/results.sarif

30 changes: 24 additions & 6 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright (c) 2021-2022 Contributors to the Eclipse Foundation

# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.

# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# SPDX-License-Identifier: Apache-2.0
---

# Depending on the location of your Docker container
# you need to change the path to the specific Docker registry.
#
Expand Down Expand Up @@ -28,7 +46,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
Expand All @@ -42,7 +60,7 @@ jobs:
severity: "CRITICAL,HIGH"

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
if: always()
with:
sarif_file: "trivy-results1.sarif"
Expand All @@ -57,7 +75,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# It's also possible to scan your private registry with Trivy's built-in image scan.
# All you have to do is set ENV vars.
Expand All @@ -77,7 +95,7 @@ jobs:

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results3.sarif"

Expand All @@ -91,7 +109,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# It's also possible to scan your private registry with Trivy's built-in image scan.
# All you have to do is set ENV vars.
Expand All @@ -111,6 +129,6 @@ jobs:

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results3.sarif"
22 changes: 20 additions & 2 deletions .github/workflows/veracode.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
# Copyright (c) 2021-2022 Contributors to the Eclipse Foundation

# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.

# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# SPDX-License-Identifier: Apache-2.0
---

name: Weekly Veracode Scan

on:
schedule:
# Once a week
- cron: "0 0 * * 0"
# Once a day
- cron: "0 0 * * *"
workflow_dispatch:
# Trigger manually

Expand Down

0 comments on commit 1e58e9b

Please sign in to comment.