Skip to content

Commit 34140f1

Browse files
authored
ci: update and pin actions and remove expansion in run block (#492)
1 parent 8f0d727 commit 34140f1

13 files changed

Lines changed: 72 additions & 56 deletions

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ updates:
1010
schedule:
1111
interval: "weekly"
1212
commit-message:
13-
prefix: "build(NoTicket)"
13+
prefix: "chore(deps):"
14+
cooldown:
15+
default-days: 7
1416

1517
# Keep GitHub Actions up to date
1618
- package-ecosystem: "github-actions"
@@ -22,4 +24,6 @@ updates:
2224
timezone: "UTC"
2325
open-pull-requests-limit: 5
2426
commit-message:
25-
prefix: "build(NoTicket)"
27+
prefix: "chore(deps):"
28+
cooldown:
29+
default-days: 7

.github/workflows/build-documentation.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
1719
steps:
1820
- name: Checkout code
19-
uses: actions/checkout@v4
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2022

2123
- name: Set up Python
22-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2325
with:
2426
python-version: 3.x
2527

26-
- uses: actions/cache@v4
28+
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
2729
with:
2830
path: ~/.cache/pip
2931
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
@@ -44,21 +46,25 @@ jobs:
4446
- name: Resolve url path
4547
id: resolve_url_path
4648
shell: bash
49+
env:
50+
CUSTOM_PATH: ${{ github.event.inputs.custom-path }}
51+
GITHUB_REF_NAME: ${{ github.ref_name }}
52+
GITHUB_RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
4753
run: |
48-
if [[ -n "${{ github.event.inputs.custom-path }}" ]]; then
49-
echo "path=${{ github.event.inputs.custom-path }}" >> $GITHUB_OUTPUT
54+
if [[ -n "${CUSTOM_PATH}" ]]; then
55+
echo "path=${CUSTOM_PATH}" >> $GITHUB_OUTPUT
5056
# 0.x releases deploy to 0.x path, all other releases deploy to latest path
51-
elif [[ "${{ github.event_name }}" == "release" && "${{ github.event.release.tag_name }}" == 0.* ]]; then
57+
elif [[ "${{ github.event_name }}" == "release" && "${GITHUB_RELEASE_TAG_NAME}" == 0.* ]]; then
5258
echo "path=0.x" >> $GITHUB_OUTPUT
5359
# for manual builds deploy to the branch name path
5460
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
55-
echo "path=${{ github.ref_name }}" >> $GITHUB_OUTPUT
61+
echo "path=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
5662
else
5763
echo "path=latest" >> $GITHUB_OUTPUT
5864
fi
5965
6066
- name: Deploy to GitHub Pages
61-
uses: peaceiris/actions-gh-pages@v4
67+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
6268
with:
6369
github_token: ${{ secrets.GITHUB_TOKEN }}
6470
publish_dir: ./docs_compiled

.github/workflows/check-pr-formatting.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ on:
77

88
jobs:
99
pr-formatting:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-slim
11+
permissions:
12+
pull-requests: read
1113
steps:
12-
- name: Formatting conventions
13-
uses: firebolt-db/action-pr-checks@main
14+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
if: ${{ !startsWith(github.head_ref, 'dependabot') }}
1418
with:
15-
github-key: ${{ secrets.GITHUB_TOKEN }}
19+
# Ensures the subject doesn't start with an uppercase character.
20+
subjectPattern: ^(?![A-Z]).+$
21+
requireScope: false

.github/workflows/code-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Check out code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
ref: ${{ inputs.branch }}
2121

2222
- name: Set up Python 3.9
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2424
with:
2525
python-version: 3.9
2626

.github/workflows/integration-tests-core.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ jobs:
4646
runs-on: ${{ inputs.os_name }}
4747
steps:
4848
- name: Check out code
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5050
with:
5151
repository: 'firebolt-db/firebolt-python-sdk'
5252

5353
- name: Setup Firebolt Core
5454
id: setup-core
55-
uses: firebolt-db/action-setup-core@main
55+
uses: firebolt-db/action-setup-core@eabcd701de0be41793fda0655d29d46c70c847c2 # main
5656
with:
5757
tag_version: ${{ inputs.tag_version || vars.DEFAULT_CORE_IMAGE_TAG }}
5858

5959
- name: Set up Python
60-
uses: actions/setup-python@v5
60+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6161
with:
6262
python-version: ${{ inputs.python_version }}
6363

@@ -94,15 +94,15 @@ jobs:
9494
9595
# Need to pull the pages branch in order to fetch the previous runs
9696
- name: Get Allure history
97-
uses: actions/checkout@v4
97+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9898
if: always()
9999
continue-on-error: true
100100
with:
101101
ref: gh-pages
102102
path: gh-pages
103103

104104
- name: Allure Report
105-
uses: firebolt-db/action-allure-report@v1
105+
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
106106
if: always()
107107
continue-on-error: true
108108
with:
@@ -113,12 +113,12 @@ jobs:
113113
repository-name: python-sdk
114114

115115
- name: Allure Report HTTPS
116-
uses: firebolt-db/action-allure-report@v1
116+
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
117117
if: always()
118118
continue-on-error: true
119119
with:
120120
github-key: ${{ secrets.GITHUB_TOKEN }}
121121
test-type: core_https
122122
allure-dir: allure-results-https
123123
pages-branch: gh-pages
124-
repository-name: python-sdk
124+
repository-name: python-sdk

.github/workflows/integration-tests-v1.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Check out code
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020

2121
- name: Set up Python 3.9
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2323
with:
2424
python-version: 3.9
2525

@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Setup database and engine
3232
id: setup
33-
uses: firebolt-db/integration-testing-setup@v1
33+
uses: firebolt-db/integration-testing-setup@813c4835ef38adcba3f8760e7afc21a3c7248023 # v2.6.2
3434
with:
3535
firebolt-username: ${{ secrets.FIREBOLT_STG_USERNAME }}
3636
firebolt-password: ${{ secrets.FIREBOLT_STG_PASSWORD }}
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Restore cached failed tests
4141
id: cache-tests-restore
42-
uses: actions/cache/restore@v4
42+
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
4343
with:
4444
path: |
4545
.pytest_cache/v/cache/lastfailed
@@ -64,9 +64,9 @@ jobs:
6464
6565
- name: Save failed tests
6666
id: cache-tests-save
67-
uses: actions/cache/save@v4
67+
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
6868
if: failure()
6969
with:
7070
path: |
7171
.pytest_cache/v/cache/lastfailed
72-
key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }}
72+
key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }}

.github/workflows/integration-tests-v2.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out code
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
repository: 'firebolt-db/firebolt-python-sdk'
2929

3030
- name: Set up Python 3.9
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3232
with:
3333
python-version: 3.9
3434

@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Setup database and engine
4141
id: setup
42-
uses: firebolt-db/integration-testing-setup@v2
42+
uses: firebolt-db/integration-testing-setup@813c4835ef38adcba3f8760e7afc21a3c7248023 # v2.6.2
4343
with:
4444
firebolt-client-id: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
4545
firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
@@ -62,15 +62,15 @@ jobs:
6262
6363
# Need to pull the pages branch in order to fetch the previous runs
6464
- name: Get Allure history
65-
uses: actions/checkout@v4
65+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666
if: always()
6767
continue-on-error: true
6868
with:
6969
ref: gh-pages
7070
path: gh-pages
7171

7272
- name: Allure Report
73-
uses: firebolt-db/action-allure-report@v1
73+
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
7474
if: always()
7575
with:
7676
github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }}

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Decorate commit
34-
uses: Sibz/github-status-action@v1
34+
uses: Sibz/github-status-action@650dd1a882a76dbbbc4576fb5974b8d22f29847f # v1.1.6
3535
with:
3636
authToken: ${{secrets.GITHUB_TOKEN}}
3737
context: 'Integration tests'

.github/workflows/nightly-v1.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
python-version: ['3.9', '3.10', '3.11']
4040
steps:
4141
- name: Check out code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4343

4444
- name: Set up Python
45-
uses: actions/setup-python@v2
45+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4646
with:
4747
python-version: ${{ matrix.python-version }}
4848

@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: Setup database and engine
5959
id: setup
60-
uses: firebolt-db/integration-testing-setup@v1
60+
uses: firebolt-db/integration-testing-setup@813c4835ef38adcba3f8760e7afc21a3c7248023 # v2.6.2
6161
with:
6262
firebolt-username: ${{ secrets.FIREBOLT_STG_USERNAME }}
6363
firebolt-password: ${{ secrets.FIREBOLT_STG_PASSWORD }}
@@ -85,7 +85,7 @@ jobs:
8585
- name: Slack Notify of failure
8686
if: failure()
8787
id: slack
88-
uses: firebolt-db/action-slack-nightly-notify@v1
88+
uses: firebolt-db/action-slack-nightly-notify@1bdd915837fbe0986aeacd2ee63a648ae2dcc6db # v1.0.0
8989
with:
9090
os: ${{ matrix.os }}
9191
programming-language: Python

.github/workflows/nightly-v2.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
python-version: ['3.9', '3.10', '3.11']
4040
steps:
4141
- name: Check out code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4343

4444
- name: Set up Python
45-
uses: actions/setup-python@v2
45+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4646
with:
4747
python-version: ${{ matrix.python-version }}
4848

@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: Setup database and engine
5959
id: setup
60-
uses: firebolt-db/integration-testing-setup@v2
60+
uses: firebolt-db/integration-testing-setup@813c4835ef38adcba3f8760e7afc21a3c7248023 # v2.6.2
6161
with:
6262
firebolt-client-id: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
6363
firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
@@ -81,7 +81,7 @@ jobs:
8181
- name: Slack Notify of failure
8282
if: failure()
8383
id: slack
84-
uses: firebolt-db/action-slack-nightly-notify@v1
84+
uses: firebolt-db/action-slack-nightly-notify@1bdd915837fbe0986aeacd2ee63a648ae2dcc6db # v1.0.0
8585
with:
8686
os: ${{ matrix.os }}
8787
programming-language: Python

0 commit comments

Comments
 (0)