Skip to content

Commit 927212f

Browse files
authored
Pin GitHub Actions
1 parent ab6eca5 commit 927212f

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

.github/workflows/approved_status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- name: Get GitHub App token
2727
id: get_token
28-
uses: actions/create-github-app-token@v1
28+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
2929
with:
3030
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
3131
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626

2727
steps:
2828
- name: Checkout repository
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3030

3131
# Initializes the CodeQL tools for scanning.
3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v2
33+
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
3434
with:
3535
languages: ${{ matrix.language }}
3636
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -44,7 +44,7 @@ jobs:
4444
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4545
# If this step fails, then you should remove it and run the build manually (see below)
4646
- name: Autobuild
47-
uses: github/codeql-action/autobuild@v2
47+
uses: github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
4848

4949
- name: Perform CodeQL Analysis
50-
uses: github/codeql-action/analyze@v2
50+
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2020
with:
2121
# Fetch all history for applying timestamps to every page
2222
fetch-depth: 0
2323

2424
- name: Set up Python
25-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
2626
with:
2727
python-version: "3.11"
2828
cache: "pip"
@@ -39,7 +39,7 @@ jobs:
3939
echo "SPHINX_VERSION=$(.tox/docs/bin/python -c "import importlib.metadata;print(importlib.metadata.version('sphinx'))")" >> $GITHUB_ENV
4040
4141
- name: Cache sphinx
42-
uses: actions/cache@v3
42+
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0
4343
with:
4444
path: docs/.sphinx
4545
key: sphinx-${{ env.SPHINX_VERSION }}-${{ hashFiles('.generator/schemas/**/openapi.yaml') }}
@@ -51,7 +51,7 @@ jobs:
5151
- name: Compress site
5252
run: tar czf site.tar.gz site
5353

54-
- uses: actions/upload-artifact@v4
54+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5555
with:
5656
name: documentation
5757
path: site.tar.gz
@@ -64,15 +64,15 @@ jobs:
6464
- build
6565

6666
steps:
67-
- uses: actions/download-artifact@v4
67+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6868
with:
6969
name: documentation
7070
path: site
7171

7272
- name: Uncompress site
7373
run: tar xzf site/site.tar.gz && rm site/site.tar.gz
7474

75-
- uses: peaceiris/actions-gh-pages@v3
75+
- uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
7676
with:
7777
github_token: ${{ secrets.GITHUB_TOKEN }}
7878
publish_dir: ./site

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
fetch-depth: 1
2424

25-
- uses: actions/setup-python@v4
25+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
2626
name: Install Python
2727
with:
2828
python-version: "3.11"

.github/workflows/reusable-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
examples:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2727
with:
2828
repository: DataDog/datadog-api-client-python
2929
ref: ${{ inputs.target-branch || github.ref }}
3030
- name: Install Python
31-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
3232
with:
3333
python-version: ${{ inputs.python-version }}
3434
cache: "pip"

.github/workflows/reusable-integration-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ jobs:
8585
- name: Get GitHub App token
8686
if: github.event_name == 'pull_request'
8787
id: get_token
88-
uses: actions/create-github-app-token@v1
88+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
8989
with:
9090
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
9191
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
9292
repositories: ${{ inputs.target-repo || 'datadog-api-spec' }}
9393
- name: Checkout code
94-
uses: actions/checkout@v3
94+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
9595
with:
9696
repository: DataDog/datadog-api-client-python
9797
ref: ${{ inputs.target-branch || github.ref }}
@@ -104,7 +104,7 @@ jobs:
104104
status: pending
105105
context: ${{ inputs.status-context || 'integration' }}
106106
- name: Set up Python 3.12
107-
uses: actions/setup-python@v4
107+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
108108
with:
109109
python-version: "3.12"
110110
cache: "pip"

.github/workflows/reusable-pre-commit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ jobs:
3030
- name: Get GitHub App token
3131
id: get_token
3232
if: inputs.enable-commit-changes
33-
uses: actions/create-github-app-token@v1
33+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
3434
with:
3535
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
3636
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3838
with:
3939
fetch-depth: 0
4040
repository: DataDog/datadog-api-client-python
4141
ref: ${{ inputs.target-branch || github.event.pull_request.head.sha || github.ref }}
4242
token: ${{ inputs.enable-commit-changes && steps.get_token.outputs.token || github.token }}
43-
- uses: actions/setup-python@v4
43+
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
4444
with:
4545
python-version: '3.11'
4646
- name: Install pre-commit
4747
run: python -m pip install pre-commit
4848
- name: set PY
4949
run: echo "PY=$(python -c 'import platform;print(platform.python_version())')" >> $GITHUB_ENV
50-
- uses: actions/cache@v3
50+
- uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0
5151
with:
5252
path: ~/.cache/pre-commit
5353
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/reusable-python-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ jobs:
3939
exclude: ${{ fromJSON(inputs.matrix-exclude) }}
4040
runs-on: ${{ matrix.platform }}
4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4343
with:
4444
repository: DataDog/datadog-api-client-python
4545
ref: ${{ inputs.target-branch || github.ref }}
4646
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v4
47+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
cache: "pip"

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
stale:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/stale@v9
19+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
stale-issue-message: >-

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Get GitHub App token
6969
if: github.event_name == 'pull_request'
7070
id: get_token
71-
uses: actions/create-github-app-token@v1
71+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
7272
with:
7373
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
7474
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)