Skip to content

Commit 39b6f19

Browse files
Pin dependencies (#5086)
Co-authored-by: Shashank K S <Shashank.Suryanarayana@elastic.co>
1 parent 1dedea7 commit 39b6f19

14 files changed

+42
-42
lines changed

.github/workflows/add-guidelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Check out the repository
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
1313

1414
- name: Set environment variable for early exit control
1515
id: check_label
@@ -47,14 +47,14 @@ jobs:
4747
4848
- name: Fail if no relevant labels are found
4949
if: env.GUIDELINES_FILE == ''
50-
uses: actions/github-script@v7
50+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
5151
with:
5252
script: |
5353
core.setFailed('No appropriate GitHub label found in the PR. Failing the job.')
5454
5555
- name: Add Guidelines Comment
5656
if: env.CONTINUE_JOB == 'true' && (github.event.action == 'opened' || github.event.action == 'labeled')
57-
uses: mshick/add-pr-comment@v2
57+
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
5858
with:
5959
message-path: ${{ env.GUIDELINES_FILE }}
6060
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/backport.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
github.event.pull_request.state == 'open' && !github.event.pull_request.draft
2222
steps:
2323
- name: 'Apply default "backport: auto" label'
24-
uses: actions/github-script@v4
24+
uses: actions/github-script@10b53a9ec6c222bb4ce97aa6bd2b5f739696b536 # v4
2525
if: |
2626
!contains(github.event.pull_request.labels.*.name, 'backport: auto') &&
2727
!contains(github.event.pull_request.labels.*.name, 'backport: skip')
@@ -34,7 +34,7 @@ jobs:
3434
labels: ['backport: auto']
3535
})
3636
- name: 'Remove "backport: auto" if "backport: skip" is set'
37-
uses: actions/github-script@v4
37+
uses: actions/github-script@10b53a9ec6c222bb4ce97aa6bd2b5f739696b536 # v4
3838
if: |
3939
contains(github.event.pull_request.labels.*.name, 'backport: auto') &&
4040
contains(github.event.pull_request.labels.*.name, 'backport: skip')
@@ -65,7 +65,7 @@ jobs:
6565

6666
steps:
6767
- name: Checkout repo
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
6969
with:
7070
token: ${{ secrets.WRITE_TRADEBOT_DETECTION_RULES_TOKEN }}
7171
ref: main
@@ -91,7 +91,7 @@ jobs:
9191
git reset --soft HEAD^
9292
9393
- name: Setup Python 3.12
94-
uses: actions/setup-python@v5
94+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
9595
with:
9696
python-version: '3.12'
9797

@@ -159,7 +159,7 @@ jobs:
159159
git push
160160
161161
- name: "Notify slack on failure"
162-
uses: craftech-io/slack-action@v1
162+
uses: craftech-io/slack-action@fb1d4e50375d7758efb90fa0564734bae931f84f # v1
163163
with:
164164
slack_webhook_url: ${{ secrets.EXTERNAL_SLACK_DETECTION_RULES_URL }}
165165
status: failure

.github/workflows/branch-status-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
steps:
1919
- name: Get Backport Status
2020
id: get_backport_status
21-
uses: fjogeleit/http-request-action@v1
21+
uses: fjogeleit/http-request-action@bf78da14118941f7e940279dd58f67e863cbeff6 # v1
2222
with:
2323
url: "https://api.github.com/repos/elastic/detection-rules/actions/workflows/pythonpackage.yml/runs?per_page=1&branch=${{matrix.target_branch}}"
2424
method: 'GET'
2525
bearerToken: ${{ secrets.READ_ELASTIC_DETECTION_RULES_ORG_TOKEN }}
2626

2727
- name: Check Backport Status
28-
uses: actions/github-script@v6
28+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
2929
with:
3030
script: |
3131
const workflow_status = ${{ toJSON(fromJSON(steps.get_backport_status.outputs.response).workflow_runs[0].status) }}

.github/workflows/code-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2121
with:
2222
fetch-depth: 1
2323

2424
- name: Set up Python 3.13
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2626
with:
2727
python-version: '3.13'
2828

.github/workflows/community.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check if member of elastic org
15-
uses: actions/github-script@v6
15+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
1616
id: membership
1717
with:
1818
github-token: ${{ secrets.READ_ELASTIC_DETECTION_RULES_ORG_TOKEN }}
@@ -40,7 +40,7 @@ jobs:
4040
4141
4242
- name: Add label for community members
43-
uses: actions/github-script@v6
43+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
4444
if: ${{ steps.membership.outputs.result == 'notMember' }}
4545
with:
4646
script: |

.github/workflows/get-target-branches.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
outputs:
1515
matrix: ${{ steps.get-branch-list.outputs.matrix }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
1818

1919
- name: Set up Python 3.12
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2121
with:
2222
python-version: '3.12'
2323

.github/workflows/kibana-mitre-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
KIBANA_ISSUE_NUMBER: 166152 # Define the Kibana issue number as a variable
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
1818

1919
- name: Get MITRE Attack changed files
2020
id: changed-attack-files

.github/workflows/lock-versions.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ jobs:
1414

1515
steps:
1616
- name: Validate the source branch
17-
uses: actions/github-script@v3
17+
uses: actions/github-script@ffc2c79a5b2490bd33e0a41c1de74b877714d736 # v3
1818
with:
1919
script: |
2020
if ('refs/heads/main' !== '${{github.event.ref}}') {
2121
core.setFailed('Forbidden branch, expected "main"')
2222
}
2323
2424
- name: Checkout detection-rules
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2626
with:
2727
fetch-depth: 0
2828

2929
- name: Set up Python 3.12
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
3131
with:
3232
python-version: '3.12'
3333

@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Create Pull Request
6464
id: cpr
65-
uses: peter-evans/create-pull-request@v3
65+
uses: peter-evans/create-pull-request@18f7dc018cc2cd597073088f7c7591b9d1c02672 # v3
6666
with:
6767
assignees: '${{github.actor}}'
6868
delete-branch: true
@@ -78,7 +78,7 @@ jobs:
7878
labels: "backport: auto"
7979

8080
- name: Archive production artifacts
81-
uses: actions/upload-artifact@v4
81+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
8282
with:
8383
name: release-files
8484
path: |

.github/workflows/manual-backport.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020

2121
- name: Checkout detection-rules
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2323
with:
2424
token: ${{ secrets.WRITE_TRADEBOT_DETECTION_RULES_TOKEN }}
2525
fetch-depth: 0
@@ -46,7 +46,7 @@ jobs:
4646
git reset --soft HEAD^
4747
4848
- name: Setup Python 3.12
49-
uses: actions/setup-python@v5
49+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
5050
with:
5151
python-version: '3.12'
5252

@@ -79,7 +79,7 @@ jobs:
7979
./detection_rules/etc/commit-and-push.sh $TARGET_BRANCH $COMMIT_SHA
8080
8181
- name: "Notify slack on failure"
82-
uses: craftech-io/slack-action@v1
82+
uses: craftech-io/slack-action@fb1d4e50375d7758efb90fa0564734bae931f84f # v1
8383
with:
8484
slack_webhook_url: ${{ secrets.READ_DETECTION_RULES_SLACK_WEBHOOK_TOKEN }}
8585
status: failure

.github/workflows/pythonpackage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
1616
with:
1717
fetch-depth: 1
1818

@@ -21,7 +21,7 @@ jobs:
2121
git fetch origin main:refs/remotes/origin/main
2222
2323
- name: Set up Python 3.13
24-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2525
with:
2626
python-version: '3.13'
2727

@@ -48,7 +48,7 @@ jobs:
4848
python -m detection_rules dev build-release $GENERATE_NAVIGATOR_FILES
4949
5050
- name: Archive production artifacts for branch builds
51-
uses: actions/upload-artifact@v4
51+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5252
if: |
5353
github.event_name == 'push'
5454
with:

0 commit comments

Comments
 (0)