Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit b069eee

Browse files
committed
ci: update workflow to follow security best practices
1 parent 20b889e commit b069eee

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/actions/setup_node/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ runs:
44
using: composite
55
steps:
66
- name: Use Node.js 16.x
7-
uses: actions/setup-node@v3
7+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
88
with:
99
node-version: 16.x

.github/workflows/coveralls.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ on:
99
jobs:
1010
build:
1111
name: Build
12-
runs-on: ubuntu-latest # TODO: Replace this with the appropriate runner for Deriv-Api-Docs when provided
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
1616
- name: Setup Node
1717
uses: './.github/actions/setup_node'
1818
- name: Install dependencies
@@ -22,4 +22,4 @@ jobs:
2222
- name: Run Tests
2323
run: npm run test -- --collectCoverage
2424
- name: Coveralls
25-
uses: coverallsapp/github-action@v2
25+
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949

.github/workflows/release_production.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
build_and_publish:
1010
name: Builds and Publishes to Cloudflare Pages Production
1111
environment: Production
12-
runs-on: ubuntu-latest # TODO: Replace this with the appropriate runner for Deriv-Api-Docs when provided
12+
runs-on: ubuntu-latest
1313
outputs:
1414
RELEASE_VERSION: ${{ steps.extract_version.outputs.RELEASE_VERSION }}
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
1818
- name: Setup Node
1919
uses: ./.github/actions/setup_node
2020
- name: Install dependencies
@@ -30,14 +30,14 @@ jobs:
3030
RELEASE_TYPE: ${{ env.RELEASE_TYPE }}
3131
- name: Extract version
3232
id: extract_version
33-
run: echo "RELEASE_VERSION=$(cat build/version)" >> $GITHUB_OUTPUT
33+
run: echo "RELEASE_VERSION=$(cat build/version.txt)" >> $GITHUB_OUTPUT
3434
- name: Publish to Cloudflare Pages Production
3535
uses: ./.github/actions/publish_to_pages_production
3636
with:
3737
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3838
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3939
- name: Upload Build Artifact
40-
uses: actions/upload-artifact@v4
40+
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
4141
with:
4242
name: build
4343
path: build
@@ -51,9 +51,9 @@ jobs:
5151
needs: [build_and_publish]
5252
steps:
5353
- name: Checkout
54-
uses: actions/checkout@v4
54+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
5555
- name: Conclusion
56-
uses: technote-space/workflow-conclusion-action@v3
56+
uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5
5757
- name: Create Slack Message
5858
id: create_slack_message
5959
run: |
@@ -75,9 +75,9 @@ jobs:
7575
needs: [build_and_publish]
7676
steps:
7777
- name: Checkout
78-
uses: actions/checkout@v4
78+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
7979
- name: Download Build Artifact
80-
uses: actions/download-artifact@v4
80+
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935
8181
with:
8282
name: build
8383
path: build

0 commit comments

Comments
 (0)