Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 3 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ env:
SONARQ_TOKEN: ${{ secrets.SONARQ_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
BLACK_DUCK_TOKEN: ${{ secrets.BLACK_DUCK_TOKEN }}
# Other
DEPLOYMENT_USER: ${{ secrets.DEPLOYMENT_USER }}
DEPLOYMENT_PASS: ${{ secrets.DEPLOYMENT_PASS }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -115,23 +112,6 @@ jobs:
sonarq-token: ${{ env.SONARQ_TOKEN }}
github-token: ${{ env.GITHUB_TOKEN }}

scan:
name: Blackduck Scan
if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped')
runs-on: ubuntu-latest
timeout-minutes: 30
needs: build
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Scan
uses: ./.github/actions/scan-with-blackduck
with:
blackduck_token: ${{ env.BLACK_DUCK_TOKEN }}
github_token: ${{ env.GITHUB_TOKEN }}
maven-version: ${{ env.MAVEN_VERSION }}

deploy-snapshot:
name: Deploy snapshot to Artifactory
if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped')
Expand All @@ -158,7 +138,7 @@ jobs:
maven-version: ${{ env.MAVEN_VERSION }}

- name: Set Dry Run for Pull Request
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request_target'
run: echo "DRY_RUN_PARAM=-DaltDeploymentRepository=local-repo::default::file:./local-repo" >> $GITHUB_ENV
shell: bash

Expand All @@ -182,6 +162,6 @@ jobs:
-DdeployAtEnd=true
deploy ${{ env.DRY_RUN_PARAM }}
env:
DEPLOYMENT_USER: ${{ env.DEPLOYMENT_USER }}
DEPLOYMENT_PASS: ${{ env.DEPLOYMENT_PASS }}
DEPLOYMENT_USER: ${{ secrets.DEPLOYMENT_USER }}
DEPLOYMENT_PASS: ${{ secrets.DEPLOYMENT_PASS }}
shell: bash
2 changes: 1 addition & 1 deletion .pipeline/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
failOn: [ 'NONE' ]
versioningModel: "major-minor"
detectTools: [ 'DETECTOR', 'BINARY_SCAN' ]
installArtifacts: true
installArtifacts: false
repository: '/cap-java/cds-feature-attachments'
verbose: true
scanProperties:
Expand Down
5 changes: 1 addition & 4 deletions samples/bookshop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@

<groupId>customer</groupId>
<artifactId>bookshop-parent</artifactId>
<version>${revision}</version>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>bookshop parent</name>

<properties>
<!-- OUR VERSION -->
<revision>1.0.0-SNAPSHOT</revision>

<!-- DEPENDENCIES VERSION -->
<jdk.version>17</jdk.version>
<cds.services.version>4.4.2</cds.services.version>
Expand Down
2 changes: 1 addition & 1 deletion samples/bookshop/srv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>bookshop-parent</artifactId>
<groupId>customer</groupId>
<version>${revision}</version>
<version>1.0.0-SNAPSHOT</version>
</parent>

<artifactId>bookshop</artifactId>
Expand Down
Loading