This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new c3646af70a Update Node.js in Github Actions to Node 16 (#27192)
c3646af70a is described below
commit c3646af70a72eae4e5ffbf2d9c246d5eaac8571e
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Oct 25 11:37:09 2022 +0200
Update Node.js in Github Actions to Node 16 (#27192)
We were using an old version of some actions that used Node 12
and node 12 has been deprecated. This PR bumps all necessary actions
to use Node 16.
---
.github/actions/configure-aws-credentials | 2 +-
.github/workflows/build-images.yml | 6 +++---
.github/workflows/ci.yml | 8 ++++----
...0005-preventing-using-contributed-code-when-building-images.md | 2 +-
scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py | 2 +-
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/.github/actions/configure-aws-credentials
b/.github/actions/configure-aws-credentials
index e97d7fbc8e..67fbcbb121 160000
--- a/.github/actions/configure-aws-credentials
+++ b/.github/actions/configure-aws-credentials
@@ -1 +1 @@
-Subproject commit e97d7fbc8e0e5af69631c13daa0f4b5a8d88165b
+Subproject commit 67fbcbb121271f7775d2e7715933280b06314838
diff --git a/.github/workflows/build-images.yml
b/.github/workflows/build-images.yml
index 7c234f6a88..ddc79ff6d9 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -100,7 +100,7 @@ jobs:
# we checkout the target commit and it's parent to be able to compare
them
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm
-rf /workspace/*"
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_COMMIT_SHA }}
persist-credentials: false
@@ -390,7 +390,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
steps:
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm
-rf /workspace/*"
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
ref: ${{ needs.build-info.outputs.target-commit-sha }}
persist-credentials: false
@@ -398,7 +398,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: >
Checkout "main" branch to 'main-airflow' folder
to use ci/scripts from there.
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
path: "main-airflow"
ref: "main"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0f7bb2248f..e3bf770f38 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -604,7 +604,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm
-rf /workspace/*"
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 2
persist-credentials: false
@@ -626,7 +626,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
needs: [build-info]
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 2
persist-credentials: false
@@ -949,7 +949,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
breeze release-management prepare-airflow-package
--package-format sdist --version-suffix-for-pypi dev0
- name: "Upload provider distribution artifacts"
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v3
with:
name: airflow-provider-packages
path: "./dist/apache-airflow-providers-*.tar.gz"
@@ -1841,7 +1841,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
steps:
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm
-rf /workspace/*"
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
ref: ${{ needs.build-info.outputs.targetCommitSha }}
persist-credentials: false
diff --git
a/dev/breeze/doc/adr/0005-preventing-using-contributed-code-when-building-images.md
b/dev/breeze/doc/adr/0005-preventing-using-contributed-code-when-building-images.md
index b9d811db12..6f27821aa1 100644
---
a/dev/breeze/doc/adr/0005-preventing-using-contributed-code-when-building-images.md
+++
b/dev/breeze/doc/adr/0005-preventing-using-contributed-code-when-building-images.md
@@ -108,7 +108,7 @@ but to make sure that the following rules are in-place:
to our repository
```yaml
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_COMMIT_SHA }}
persist-credentials: false
diff --git a/scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py
b/scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py
index 3250c8299c..6bdcc58040 100755
--- a/scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py
+++ b/scripts/ci/pre_commit/pre_commit_checkout_no_credentials.py
@@ -80,7 +80,7 @@ set to False.[/]
For security reasons - make sure all of the checkout actions have
persist_credentials set, similar to:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
persist-credentials: false