Skip to content

Commit 461d525

Browse files
authored
Merge pull request #59 from newrelic/pin-gh-action
Pin GH actions
2 parents de56ff8 + c6690ee commit 461d525

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/workflows/publish_main_snapshot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
1212
- name: Set up JDK 11
13-
uses: actions/setup-java@v4
13+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # pin@v4
1414
with:
1515
distribution: 'temurin'
1616
java-version: '11'

.github/workflows/publish_release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
1313
- name: Set up JDK 11
14-
uses: actions/setup-java@v4
14+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # pin@v4
1515
with:
1616
distribution: 'temurin'
1717
java-version: '11'

.github/workflows/pull_request.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: gradle/wrapper-validation-action@v1
11+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
12+
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@v1
1313
- name: Set up JDK 11
14-
uses: actions/setup-java@v4
14+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # pin@v4
1515
with:
1616
distribution: 'temurin'
1717
java-version: '11'

.github/workflows/repolinter.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Repolinter Action
66
# Currently there is no elegant way to specify the default
77
# branch in the event filtering, so branches are instead
88
# filtered in the "Test Default Branch" step.
9-
on: [push, workflow_dispatch]
9+
on: [ push, workflow_dispatch ]
1010

1111
jobs:
1212
repolint:
@@ -15,17 +15,17 @@ jobs:
1515
steps:
1616
- name: Test Default Branch
1717
id: default-branch
18-
uses: actions/github-script@v7
18+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # pin@v7
1919
with:
2020
script: |
2121
const data = await github.rest.repos.get(context.repo)
2222
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
2323
- name: Checkout Self
2424
if: ${{ steps.default-branch.outputs.result == 'true' }}
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
2626
- name: Run Repolinter
2727
if: ${{ steps.default-branch.outputs.result == 'true' }}
28-
uses: newrelic/repolinter-action@v1
28+
uses: newrelic/repolinter-action@3f4448f855c351e9695b24524a4111c7847b84cb # pin@v1
2929
with:
3030
config_url: https://raw.githubusercontent.com/newrelic/.github/main/repolinter-rulesets/community-plus.yml
3131
output_type: issue

.github/workflows/snyk_scan.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Snyk Vulnerability Scan
66
on:
77
workflow_dispatch:
88
schedule:
9-
- cron: '00 15 * * 1'
9+
- cron: '00 15 * * 1'
1010
push:
1111
branches:
1212
- main
@@ -16,12 +16,12 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout Code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
2020
with:
2121
ref: 'main'
22-
22+
2323
- name: Run Snyk To Check For Vulnerabilities
24-
uses: snyk/actions/gradle-jdk11@master
24+
uses: snyk/actions/gradle-jdk11@8349f9043a8b7f0f3ee8885bf28f0b388d2446e8 # pin@master
2525
env:
2626
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2727
with:

0 commit comments

Comments
 (0)