Skip to content

Commit f1a0d01

Browse files
authored
Merge pull request #4259 from vvbandeira/gha-versions
gha: use commit sha instead of version/tag
2 parents 91d5e6a + b7f536b commit f1a0d01

13 files changed

Lines changed: 31 additions & 31 deletions

.github/workflows/black.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ jobs:
55
lint:
66
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
77
steps:
8-
- uses: actions/checkout@v6
9-
- uses: psf/black@stable
8+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9+
- uses: psf/black@87928e6d6761a4a6d22250e1fee5601b3998086e # 26.5.1

.github/workflows/github-actions-cron-test-installer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
3131
steps:
3232
- name: Check out repository code
33-
uses: actions/checkout@v6
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
with:
3535
fetch-depth: 1
3636
submodules: recursive

.github/workflows/github-actions-cron-update-OR.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1111
steps:
1212
- name: Check out repository code recursively
13-
uses: actions/checkout@v6
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414
with:
1515
submodules: recursive
1616
- name: Pull changes in OpenROAD submodule
@@ -24,7 +24,7 @@ jobs:
2424
git pull
2525
- if: "steps.remote-update.outputs.has_update != ''"
2626
name: Create Draft PR
27-
uses: peter-evans/create-pull-request@v8
27+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
2828
with:
2929
token: ${{ github.token }}
3030
signoff: true

.github/workflows/github-actions-cron-update-yosys.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1212
steps:
1313
- name: Check out repository code recursively
14-
uses: actions/checkout@v6
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
with:
1616
submodules: recursive
1717
fetch-depth: 0
@@ -28,7 +28,7 @@ jobs:
2828
git checkout ${latesttag}
2929
- if: "steps.remote-update.outputs.has_update != ''"
3030
name: Create Draft PR
31-
uses: peter-evans/create-pull-request@v8
31+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
3232
with:
3333
token: ${{ github.token }}
3434
signoff: true

.github/workflows/github-actions-cron-util-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
2121
steps:
2222
- name: Check out repository code
23-
uses: actions/checkout@v6
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424
with:
2525
fetch-depth: 1
2626
submodules: recursive

.github/workflows/github-actions-lint-tcl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v6
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717

1818
- name: Install Dependencies
1919
run: |

.github/workflows/github-actions-manual-update-rules.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
fail-fast: false
1515
steps:
1616
- name: Check out repository code recursively
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
with:
1919
fetch-depth: 0
20-
- uses: actions/setup-python@v6
20+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2121
with:
2222
python-version: "3.10"
2323
- name: Install Python Packages

.github/workflows/github-actions-on-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
1212
steps:
1313
- name: Check out repository code
14-
uses: actions/checkout@v6
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
- name: run security_scan_on_push
1616
uses: The-OpenROAD-Project/actions/security_scan_on_push@main

.github/workflows/github-actions-publish-docker-images.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ jobs:
3030
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
3131
timeout-minutes: 600
3232
steps:
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434

3535
- name: Set environment variables
3636
run: echo "IMAGE=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
3737

3838
- name: Set up Docker Buildx
39-
uses: docker/setup-buildx-action@v4
39+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
4040

4141
- name: Login to GitHub Container Registry (GHCR)
4242
if: github.event_name != 'pull_request'
43-
uses: docker/login-action@v4
43+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
4444
with:
4545
registry: ghcr.io
4646
username: gha
4747
password: ${{ github.token }}
4848

4949
- name: Build and export codespaces image
50-
uses: docker/build-push-action@v7
50+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
5151
with:
5252
context: .
5353
push: true
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
6565
steps:
6666
- name: Check out repository code
67-
uses: actions/checkout@v6
67+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6868
with:
6969
fetch-depth: 1
7070
submodules: recursive
@@ -74,11 +74,11 @@ jobs:
7474
echo "IMAGE_DEPS=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')-dev/${{ matrix.os[0] }}" >> $GITHUB_ENV
7575
7676
- name: Set up Docker Buildx
77-
uses: docker/setup-buildx-action@v4
77+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
7878

7979
- name: Login to GitHub Container Registry (GHCR)
8080
if: github.event_name != 'pull_request'
81-
uses: docker/login-action@v4
81+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
8282
with:
8383
registry: ghcr.io
8484
username: gha
@@ -88,7 +88,7 @@ jobs:
8888
run: cp tools/OpenROAD/etc/DependencyInstaller.sh etc/InstallerOpenROAD.sh
8989

9090
- name: Build and export dependencies image
91-
uses: docker/build-push-action@v7
91+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
9292
with:
9393
context: etc
9494
push: true
@@ -108,12 +108,12 @@ jobs:
108108
runs-on: ubuntu-latest
109109
steps:
110110
- name: Free Disk Space
111-
uses: jlumbroso/free-disk-space@main
111+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
112112
with:
113113
tool-cache: false
114114

115115
- name: Check out repository code
116-
uses: actions/checkout@v6
116+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
117117
with:
118118
fetch-depth: 1
119119
submodules: recursive
@@ -125,18 +125,18 @@ jobs:
125125
echo "NUM_THREADS=$(nproc)" >> $GITHUB_ENV
126126
127127
- name: Set up Docker Buildx
128-
uses: docker/setup-buildx-action@v4
128+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
129129

130130
- name: Login to GitHub Container Registry (GHCR)
131131
if: github.event_name != 'pull_request'
132-
uses: docker/login-action@v4
132+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
133133
with:
134134
registry: ghcr.io
135135
username: gha
136136
password: ${{ github.token }}
137137

138138
- name: Build and export ORFS image
139-
uses: docker/build-push-action@v7
139+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
140140
with:
141141
context: .
142142
push: true

.github/workflows/github-actions-quarterly-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
contents: write
1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2222

2323
- name: Determine tag name
2424
id: tag

0 commit comments

Comments
 (0)