You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/08/20 12:19:10 UTC

(camel-kamelets) branch pin-actions-ci-build created (now 7f547e16)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch pin-actions-ci-build
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at 7f547e16 Github Actions Security Best practices: Pin Actions to Full lenght Commit SHA - CI Build Action

This branch includes the following new commits:

     new 7f547e16 Github Actions Security Best practices: Pin Actions to Full lenght Commit SHA - CI Build Action

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-kamelets) 01/01: Github Actions Security Best practices: Pin Actions to Full lenght Commit SHA - CI Build Action

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch pin-actions-ci-build
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 7f547e161056e1f6b990bc3c5f12df2c7aad24aa
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Aug 20 14:19:04 2024 +0200

    Github Actions Security Best practices: Pin Actions to Full lenght Commit SHA - CI Build Action
---
 .github/workflows/ci-build.yml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index b09b49a9..730033b8 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -44,15 +44,18 @@ on:
       - 'NOTICE'
       - 'Jenkinsfile'
   workflow_dispatch:
+permissions:  # added using https://github.com/step-security/secure-repo
+  contents: read
+
 jobs:
   build:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v4
+    - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
       with:
         persist-credentials: false
     - name: Set up JDK
-      uses: actions/setup-java@v4
+      uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
       with:
         distribution: 'temurin'
         java-version: 17
@@ -63,7 +66,7 @@ jobs:
       shell: bash
       run: tar -czf maven-repo-${{ github.run_id }}-${{ github.run_number }}.tgz -C ~ .m2/repository
     - name: Persist Maven Repo
-      uses: actions/upload-artifact@v4
+      uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
       with:
         name: maven-repo-${{ github.run_id }}-${{ github.run_number }}
         path: maven-repo-${{ github.run_id }}-${{ github.run_number }}.tgz
@@ -75,11 +78,11 @@ jobs:
       NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }}
       NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }}
     steps:
-    - uses: actions/checkout@v4
+    - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
       with:
         persist-credentials: false
     - name: Set up JDK
-      uses: actions/setup-java@v4
+      uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
       with:
         distribution: 'temurin'
         java-version: 17