Skip to content

Commit 7e44004

Browse files
authored
fix: pin github actions from version to hash (#28)
1 parent da80347 commit 7e44004

5 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/build-docker.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
if: ${{ github.actor == 'robot-charts' || github.event_name == 'workflow_dispatch' }}
2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
with:
3131
fetch-depth: 0
3232
- name: get latest tag
@@ -41,23 +41,23 @@ jobs:
4141
echo "version=${VERSION}" >> $GITHUB_OUTPUT
4242
- name: checkout latest tag
4343
run: git checkout ${{ steps.tag.outputs.tag }}
44-
- uses: docker/setup-qemu-action@v3
44+
- uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
4545
with:
4646
platforms: 'arm64'
47-
- uses: docker/setup-buildx-action@v3
48-
- uses: docker/login-action@v3.0.0
47+
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
48+
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
4949
with:
5050
registry: ${{ env.REGISTRY }}
5151
username: ${{ github.actor }}
5252
password: ${{ secrets.GITHUB_TOKEN }}
5353
- id: meta
54-
uses: docker/metadata-action@v5.0.0
54+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
5555
with:
5656
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5757
tags: |
5858
type=raw,value=${{ steps.tag.outputs.version }}
5959
type=raw,value=latest
60-
- uses: docker/build-push-action@v5.0.0
60+
- uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
6161
with:
6262
context: .
6363
push: true

.github/workflows/lint-tests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@ jobs:
2222
runs-on: ubuntu-latest
2323
if: ${{ github.actor == 'robot-charts' || github.event_name == 'pull_request' }}
2424
steps:
25-
- uses: actions/checkout@v4
26-
- uses: actions/setup-node@v4
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2727
with:
2828
node-version: 22
2929
cache: 'npm'
3030
- run: npm ci
3131
- run: npm run test:prepare
3232
- run: npm run test
33-
- uses: actions/upload-artifact@v4
33+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
3434
if: github.event_name == 'pull_request'
3535
id: upload-artifact-report
3636
with:
3737
name: playwright-report
3838
path: ./test-artifacts/
3939
retention-days: 7
40-
- uses: daun/playwright-report-summary@v3
40+
- uses: daun/playwright-report-summary@1229105480a2a4bdd91598d8a146fbab41343fce # v3.11.0
4141
if: github.event_name == 'pull_request'
4242
id: report-md
4343
with:
4444
report-file: ./test-artifacts/report.json
4545
create-comment: false
4646
- name: create or update pr comment
47-
uses: actions/github-script@v7
47+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4848
if: github.event_name == 'pull_request'
4949
with:
5050
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/preview.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- cloud
3131
- datalens-opensource
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
- run: npm run deps
3535
env:
3636
# folder in vm runner
@@ -58,15 +58,15 @@ jobs:
5858
STORAGE_BUCKET: ${{ vars.PREVIEW_S3_BUCKET }}
5959
STORAGE_PREFIX: ${{ env.INPUT_PATH }}
6060
HTML_ENDPOINT: ${{ vars.PREVIEW_HTML_ENDPOINT }}
61-
- uses: actions/upload-artifact@v4
61+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6262
id: upload-artifact
6363
if: github.event_name == 'pull_request'
6464
with:
6565
name: ${{ env.REPOSITORY_NAME }}
6666
path: ./build/${{ env.REPOSITORY_NAME }}/${{ github.event.pull_request.number || github.ref_name }}/${{ env.INPUT_PATH }}
6767
retention-days: 7
6868
- name: create or update pr comment
69-
uses: actions/github-script@v7
69+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
7070
if: github.event_name == 'pull_request'
7171
with:
7272
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
runs-on: ubuntu-latest
2222
if: ${{ github.actor == 'robot-charts' || github.event_name == 'workflow_dispatch' }}
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525
with:
2626
fetch-depth: 0
27-
- uses: actions/setup-node@v4
27+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2828
with:
2929
node-version: 20
3030
cache: 'npm'
@@ -47,16 +47,16 @@ jobs:
4747
npm run build
4848
npm run build:fix
4949
npm run build:api
50-
- uses: thedoctor0/zip-release@0.7.1
50+
- uses: thedoctor0/zip-release@b57d897cb5d60cb78b51a507f63fa184cfe35554 # 0.7.6
5151
with:
5252
type: zip
5353
filename: datalens-docs-${{ steps.tag.outputs.version }}.zip
5454
directory: build
55-
- uses: actions/upload-artifact@v4
55+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
5656
with:
5757
name: datalens-docs-${{ steps.tag.outputs.version }}
5858
path: datalens-docs-${{ steps.tag.outputs.version }}.zip
59-
- uses: ncipollo/release-action@v1
59+
- uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
6060
with:
6161
artifacts: build/datalens-docs-${{ steps.tag.outputs.version }}.zip
6262
name: ${{ steps.tag.outputs.tag }}

.github/workflows/up-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
if: ${{ github.actor != 'robot-charts' }}
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
token: ${{ secrets.GH_TOKEN }}
21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2222
with:
2323
node-version: 20
2424
cache: 'npm'

0 commit comments

Comments
 (0)