From b949bee01d69e5a46d5129f9b1a3e2c451161a26 Mon Sep 17 00:00:00 2001 From: Achim Reeh Date: Wed, 17 Sep 2025 22:00:05 +0200 Subject: [PATCH 1/4] Create initial dependabot.yml for checking Github Actions dependencies --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" From 6bec7a6dc4a4a935977de03ef41f7835a223e4df Mon Sep 17 00:00:00 2001 From: Achim Reeh Date: Wed, 17 Sep 2025 22:02:55 +0200 Subject: [PATCH 2/4] Update dependabot.yml to also check maven dependencies --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ace460..5d664bd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,13 @@ version: 2 updates: + # Maintain dependencies for GitHub Actions - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" + + # Maintain dependencies for Maven + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "weekly" From 0f625fd0ae19a3080d02604ff11145bb2515b931 Mon Sep 17 00:00:00 2001 From: Achim Reeh Date: Wed, 17 Sep 2025 22:14:09 +0200 Subject: [PATCH 3/4] Update build.yml with some hardening Reference actions from outside actions/* with commit hash instead tag Do not store credentials on the filesystem --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5088bdf..0c65cba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,16 +11,22 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' cache: maven + - name: maven-settings-action - uses: s4u/maven-settings-action@v3.1.0 + uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # commit hash references to v4.0.0 with: - servers: '[{"id": "mulesoft-ee-releases", "username": "${{ secrets.MULE_REPO_USER }}", "password": "${{ secrets.MULE_REPO_PASSWORD }}"}]' + servers: '[{"id": "mulesoft-ee-releases", "username": "${env.MULE_REPO_USER}", "password": "${env.MULE_REPO_PASSWORD }"}]' repositories: '[{"id": "mulesoft-ee-releases", "name": "MuleSoft EE Releases", "url": "https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/"}]' + - name: Build and test + env: + MULE_REPO_USER: ${{ secrets.MULE_REPO_USER }} + MULE_REPO_PASSWORD: ${{ secrets.MULE_REPO_PASSWORD }} run: mvn -B verify From 0e6cbf3ff6ca5d5d34bc6566beaf73b9b3cac088 Mon Sep 17 00:00:00 2001 From: Achim Reeh Date: Wed, 17 Sep 2025 22:17:11 +0200 Subject: [PATCH 4/4] Update build.yml: fix space in env variable --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c65cba..be5b97f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - name: maven-settings-action uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # commit hash references to v4.0.0 with: - servers: '[{"id": "mulesoft-ee-releases", "username": "${env.MULE_REPO_USER}", "password": "${env.MULE_REPO_PASSWORD }"}]' + servers: '[{"id": "mulesoft-ee-releases", "username": "${env.MULE_REPO_USER}", "password": "${env.MULE_REPO_PASSWORD}"}]' repositories: '[{"id": "mulesoft-ee-releases", "name": "MuleSoft EE Releases", "url": "https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/"}]' - name: Build and test