-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jupyterhub:main' into main
- Loading branch information
Showing
43 changed files
with
749 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ jobs: | |
# Action reference: https://github.com/aquasecurity/trivy-action | ||
- name: Scan latest published image | ||
id: scan_1 | ||
uses: aquasecurity/trivy-action@fd25fed6972e341ff0007ddb61f77e88103953c2 | ||
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 | ||
with: | ||
image-ref: ${{ steps.image.outputs.spec }} | ||
format: json # ref: https://github.com/aquasecurity/trivy#save-the-results-as-json | ||
|
@@ -112,7 +112,7 @@ jobs: | |
- name: Scan rebuilt image | ||
id: scan_2 | ||
if: steps.rebuild.outcome == 'success' | ||
uses: aquasecurity/trivy-action@fd25fed6972e341ff0007ddb61f77e88103953c2 | ||
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 | ||
with: | ||
image-ref: rebuilt-image | ||
format: json # ref: https://github.com/aquasecurity/trivy#save-the-results-as-json | ||
|
@@ -171,7 +171,7 @@ jobs: | |
- name: Describe vulnerabilities | ||
if: steps.rebuild.outcome == 'success' | ||
uses: aquasecurity/trivy-action@fd25fed6972e341ff0007ddb61f77e88103953c2 | ||
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 | ||
with: | ||
image-ref: rebuilt-image | ||
format: table | ||
|
@@ -205,7 +205,7 @@ jobs: | |
# ref: https://github.com/peter-evans/create-pull-request | ||
- name: Create or update a PR | ||
if: steps.analyze.outputs.proceed == 'yes' && github.event_name != 'pull_request' | ||
uses: peter-evans/create-pull-request@v6 | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: "${{ secrets.jupyterhub_bot_pat }}" | ||
author: JupterHub Bot Account <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# - Watch multiple images tags referenced in values.yaml to match the latest | ||
# image tag. | ||
# | ||
# - Watch the jupyterhub pinning in images/*/requirements.in to match the | ||
# - Watch the jupyterhub pinning in images/*/unfrozen/requirements.txt to match the | ||
# latest jupyterhub version available on PyPI, and if doing this, also | ||
# refreeze images/*/requirements.txt. | ||
# | ||
|
@@ -20,7 +20,7 @@ name: Watch dependencies | |
on: | ||
push: | ||
paths: | ||
- "images/*/requirements.in" | ||
- "images/*/unfrozen/requirements.txt" | ||
- ".github/workflows/watch-dependencies.yaml" | ||
branches: ["main"] | ||
schedule: | ||
|
@@ -68,7 +68,7 @@ jobs: | |
registry: registry.k8s.io | ||
repository: kube-scheduler | ||
values_path: scheduling.userScheduler.image.tag | ||
version_startswith: "v1.28" | ||
version_startswith: "v1.30" | ||
version_patch_regexp_group_suffix: "" | ||
|
||
- name: pause | ||
|
@@ -114,13 +114,13 @@ jobs: | |
# ref: https://github.com/peter-evans/create-pull-request | ||
- name: Create a PR | ||
if: steps.local.outputs.tag != steps.latest.outputs.tag | ||
uses: peter-evans/create-pull-request@v6 | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: "${{ secrets.jupyterhub_bot_pat }}" | ||
author: JupterHub Bot Account <[email protected]> | ||
committer: JupterHub Bot Account <[email protected]> | ||
branch: update-image-${{ matrix.name }} | ||
labels: maintenance,dependencies | ||
labels: dependencies | ||
commit-message: Update ${{ matrix.repository }} version from ${{ steps.local.outputs.tag }} to ${{ steps.latest.outputs.tag }} | ||
title: Update ${{ matrix.repository }} version from ${{ steps.local.outputs.tag }} to ${{ steps.latest.outputs.tag }} | ||
body: >- | ||
|
@@ -142,10 +142,10 @@ jobs: | |
- name: Install Python dependencies | ||
run: pip install packaging requests | ||
|
||
- name: Get images/hub/requirements.in pinned version of jupyterhub | ||
- name: Get images/hub/unfrozen/requirements.txt pinned version of jupyterhub | ||
id: local | ||
run: | | ||
local_version=$(cat images/hub/requirements.in | grep 'jupyterhub==' | sed 's/jupyterhub==//') | ||
local_version=$(cat images/hub/unfrozen/requirements.txt | grep 'jupyterhub==' | sed 's/jupyterhub==//') | ||
echo "version=$local_version" >> $GITHUB_OUTPUT | ||
- name: Get latest version of jupyterhub | ||
|
@@ -168,11 +168,11 @@ jobs: | |
if: steps.local.outputs.version != steps.latest.outputs.version | ||
run: | | ||
for img in hub singleuser-sample; do | ||
sed --in-place 's/jupyterhub==${{ steps.local.outputs.version }}/jupyterhub==${{ steps.latest.outputs.version }}/g' images/$img/requirements.in | ||
sed --in-place 's/jupyterhub==${{ steps.local.outputs.version }}/jupyterhub==${{ steps.latest.outputs.version }}/g' images/$img/unfrozen/requirements.txt | ||
done | ||
sed --in-place 's/appVersion: "${{ steps.local.outputs.version }}"/appVersion: "${{ steps.latest.outputs.version }}"/g' jupyterhub/Chart.yaml | ||
- name: Refreeze images/*/requirements.txt based on images/*/requirements.in | ||
- name: Refreeze images/*/requirements.txt based on images/*/unfrozen/requirements.txt | ||
if: steps.local.outputs.version != steps.latest.outputs.version | ||
run: ci/refreeze | ||
|
||
|
@@ -183,13 +183,13 @@ jobs: | |
# ref: https://github.com/peter-evans/create-pull-request | ||
- name: Create a PR | ||
if: steps.local.outputs.version != steps.latest.outputs.version | ||
uses: peter-evans/create-pull-request@v6 | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: "${{ secrets.jupyterhub_bot_pat }}" | ||
author: JupterHub Bot Account <[email protected]> | ||
committer: JupterHub Bot Account <[email protected]> | ||
branch: update-jupyterhub | ||
labels: maintenance,dependencies | ||
labels: dependencies | ||
commit-message: Update jupyterhub from ${{ steps.local.outputs.version }} to ${{ steps.latest.outputs.version }} | ||
title: Update jupyterhub from ${{ steps.local.outputs.version }} to ${{ steps.latest.outputs.version }} | ||
body: >- | ||
|
@@ -208,15 +208,15 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Refreeze images/*/requirements.txt based on images/*/requirements.in | ||
- name: Refreeze images/*/requirements.txt based on images/*/unfrozen/requirements.txt | ||
run: ci/refreeze | ||
|
||
- name: git diff | ||
run: git --no-pager diff --color=always | ||
|
||
# ref: https://github.com/peter-evans/create-pull-request | ||
- name: Create a PR | ||
uses: peter-evans/create-pull-request@v6 | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: "${{ secrets.jupyterhub_bot_pat }}" | ||
author: JupyterHub Bot Account <[email protected]> | ||
|
@@ -227,4 +227,4 @@ jobs: | |
title: "hub image: refreeze requirements.txt" | ||
body: >- | ||
The hub image's requirements.txt has been refrozen based on | ||
requirements.in. | ||
unfrozen/requirements.txt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.