Skip to content

Commit b84434a

Browse files
authored
Merge pull request #2453 from sumanth8495/develop
workflows: Includes version comments in GH action uses-lines
2 parents 2e7da65 + ade02cf commit b84434a

7 files changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- name: Checkout TUF
15-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
15+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1616

1717
- name: Set up Python 3.x
18-
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
18+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
1919
with:
2020
python-version: 3.x
2121
cache: 'pip'
@@ -56,10 +56,10 @@ jobs:
5656

5757
steps:
5858
- name: Checkout TUF
59-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
59+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6060

6161
- name: Set up Python ${{ matrix.python-version }}
62-
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
62+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
6363
with:
6464
python-version: ${{ matrix.python-version }}
6565
cache: 'pip'
@@ -101,7 +101,7 @@ jobs:
101101
run: touch requirements.txt
102102

103103
- name: Set up Python
104-
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
104+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
105105
with:
106106
python-version: '3.x'
107107
cache: 'pip'

.github/workflows/cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
needs: test
1919
steps:
2020
- name: Checkout release tag
21-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
21+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2222
with:
2323
ref: ${{ github.event.workflow_run.head_branch }}
2424

2525
- name: Set up Python
26-
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
26+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
2727
with:
2828
python-version: '3.x'
2929

@@ -34,7 +34,7 @@ jobs:
3434
run: python3 -m build --sdist --wheel --outdir dist/ .
3535

3636
- name: Store build artifacts
37-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
37+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
3838
# NOTE: The GitHub release page contains the release artifacts too, but using
3939
# GitHub upload/download actions seems robuster: there is no need to compute
4040
# download URLs and tampering with artifacts between jobs is more limited.
@@ -52,14 +52,14 @@ jobs:
5252
release_id: ${{ steps.gh-release.outputs.result }}
5353
steps:
5454
- name: Fetch build artifacts
55-
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
55+
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
5656
with:
5757
name: build-artifacts
5858
path: dist
5959

6060
- id: gh-release
6161
name: Publish GitHub release draft
62-
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
62+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
6363
with:
6464
script: |
6565
fs = require('fs')
@@ -92,18 +92,18 @@ jobs:
9292
id-token: write # to authenticate as Trusted Publisher to pypi.org
9393
steps:
9494
- name: Fetch build artifacts
95-
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
95+
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
9696
with:
9797
name: build-artifacts
9898
path: dist
9999

100100
- name: Publish binary wheel and source tarball on PyPI
101101
# Only attempt pypi upload in upstream repository
102102
if: github.repository == 'theupdateframework/python-tuf'
103-
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e
103+
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
104104

105105
- name: Finalize GitHub release
106-
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
106+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
107107
with:
108108
script: |
109109
github.rest.repos.updateRelease({

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
25+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2626

2727
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8
28+
uses: github/codeql-action/init@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
2929
with:
3030
languages: 'python'
3131

3232
- name: Perform CodeQL Analysis
33-
uses: github/codeql-action/analyze@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8
33+
uses: github/codeql-action/analyze@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: 'Checkout Repository'
18-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
18+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1919
- name: 'Dependency Review'
20-
uses: actions/dependency-review-action@f6fff72a3217f580d5afd49a46826795305b63c7
20+
uses: actions/dependency-review-action@f6fff72a3217f580d5afd49a46826795305b63c7 # v3.0.8

.github/workflows/maintainer-permissions-reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: File issue to review maintainer permissions
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
16+
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
1717
with:
1818
script: |
1919
await github.rest.issues.create({

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
steps:
2323
- name: "Checkout code"
24-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
24+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2525

2626
- name: "Run analysis"
27-
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031
27+
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
2828
with:
2929
results_file: results.sarif
3030
# sarif format required by upload-sarif action
@@ -34,6 +34,6 @@ jobs:
3434
publish_results: true
3535

3636
- name: "Upload to code-scanning dashboard"
37-
uses: github/codeql-action/upload-sarif@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8
37+
uses: github/codeql-action/upload-sarif@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
3838
with:
3939
sarif_file: results.sarif

.github/workflows/specification-version-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
outputs:
1515
version: ${{ steps.get-version.outputs.version }}
1616
steps:
17-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
18-
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
17+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
18+
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
1919
with:
2020
python-version: "3.x"
2121
- id: get-version

0 commit comments

Comments
 (0)