-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade version script and pin github actions
- Loading branch information
Showing
7 changed files
with
57 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -51,11 +51,11 @@ jobs: | |
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.4.1 | ||
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0 | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
This file contains 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 |
---|---|---|
|
@@ -46,7 +46,8 @@ jobs: | |
security-events: write | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
|
||
# | ||
# Take out | ||
|
@@ -58,7 +59,7 @@ jobs: | |
# - the "Administrative Boundaries" Info (e84eaf4d-2f45-47b2-abe8-e581b06deb66) would not be visible | ||
# | ||
- name: KICS scan | ||
uses: checkmarx/[email protected] | ||
uses: checkmarx/kics-github-action@8a44970e3d2eca668be41abe9d4e06709c3b3609 # v1.7.0 | ||
with: | ||
path: "." | ||
fail_on: high | ||
|
@@ -69,6 +70,6 @@ jobs: | |
|
||
- name: Upload SARIF file for GitHub Advanced Security Dashboard | ||
if: always() | ||
uses: github/codeql-action/upload-sarif@v2 | ||
uses: github/codeql-action/upload-sarif@689fdc5193eeb735ecb2e52e819e3382876f93f4 # v2.22.6 | ||
with: | ||
sarif_file: kicsResults/results.sarif |
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -64,7 +64,7 @@ jobs: | |
{dir: conforming, name: conforming-agent}] | ||
steps: | ||
# Set-Up | ||
- uses: actions/checkout@v3.5.2 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: ./.github/actions/setup-java | ||
Check warning on line 68 in .github/workflows/veracode.yml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
# Build | ||
- name: Build ${{ matrix.variant.name }} | ||
|
@@ -77,7 +77,7 @@ jobs: | |
run: |- | ||
tar -czvf ${{ matrix.variant.dir }}/target/${{ matrix.variant.name }}.tar.gz ${{ matrix.variant.dir }}/target/${{ matrix.variant.name }}-*.jar | ||
- name: Veracode Upload And Scan | ||
uses: veracode/[email protected] | ||
uses: veracode/veracode-uploadandscan-action@c3c0b78bddb42d5f6b10d70562f692215a410d7b #v1.0 | ||
if: | | ||
needs.secret-presence.outputs.ORG_VERACODE_API_ID && needs.secret-presence.outputs.ORG_VERACODE_API_KEY | ||
continue-on-error: true | ||
|
@@ -107,7 +107,7 @@ jobs: | |
variant: [{dir: provisioning, name: provisioning-agent}] | ||
steps: | ||
# Set-Up | ||
- uses: actions/checkout@v3.5.2 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: ./.github/actions/setup-java | ||
Check warning on line 111 in .github/workflows/veracode.yml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
# Build | ||
- name: Build ${{ matrix.variant.name }} | ||
|
@@ -120,7 +120,7 @@ jobs: | |
run: |- | ||
tar --exclude='spring-web-5.3.28.jar' -czvf ${{ matrix.variant.dir }}/target/${{ matrix.variant.name }}.tar.gz ${{ matrix.variant.dir }}/target/lib/*.jar ${{ matrix.variant.dir }}/target/${{ matrix.variant.name }}-*.jar | ||
- name: Veracode Upload And Scan | ||
uses: veracode/[email protected] | ||
uses: veracode/veracode-uploadandscan-action@c3c0b78bddb42d5f6b10d70562f692215a410d7b #v1.0 | ||
if: | | ||
needs.secret-presence.outputs.ORG_VERACODE_API_ID && needs.secret-presence.outputs.ORG_VERACODE_API_KEY | ||
continue-on-error: true | ||
|
This file contains 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,22 @@ | ||
#!/bin/sh | ||
|
||
# Copyright (c) 2022,2023 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 | ||
|
||
echo Upgrading from 10.1.5-SNAPSHOT to $1 | ||
PATTERN=s/10.1.5-SNAPSHOT/$1/g | ||
LC_ALL=C | ||
find ./ -type f \( -iname "*.xml" -o -iname "*.sh" -o -iname "*.yml" -o -iname "*.yaml" -o -iname "*.md" -o -iname "*.java" -o -iname "*.properties" \) -exec sed -i.bak $PATTERN {} \; |