Skip to content

Commit

Permalink
Github Actions Security Best practices: Pin Actions to Full lenght C…
Browse files Browse the repository at this point in the history
…ommit SHA - PR Validate workflow (#6411)
  • Loading branch information
oscerd authored Sep 3, 2024
1 parent 309f45e commit 5410942
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ env:
MAVEN_OPTS: -Xmx3500m
CQ_MAVEN_ARGS: -V -ntp -e -Daether.connector.http.connectionMaxTtl=120

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
check-format:
if: github.repository == 'apache/camel-quarkus'
Expand All @@ -65,9 +68,9 @@ jobs:
if: github.base_ref == 'quarkus-main'
run: |
echo "BRANCH_OPTIONS=-Poss-snapshots" >> $GITHUB_ENV
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK 17
uses: actions/setup-java@v4
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: 'temurin'
java-version: '17'
Expand Down

0 comments on commit 5410942

Please sign in to comment.