Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sha to checkout action #1438

Merged
merged 5 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/helm-lint/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ runs:
using: composite
steps:
- name: Set up Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@v4.2.0 #4.2.0
with:
version: v3.12.1

# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# yamllint (https://github.com/adrienverge/yamllint) which require Python
- uses: actions/setup-python@v4
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: '3.10'
check-latest: true

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 #2.6.1

- name: Run chart-testing (list-changed)
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/icr-build-and-push-images/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
using: "composite"
steps:
- name: Build and push image
uses: docker/build-push-action@v5
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 #6.5.0
with:
platforms: ${{inputs.platforms}}
context: .
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-containers-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- "3.11"
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- name: Setup buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db #3..6.1
- name: Config python value
run: |
python_version=${{ matrix.python }}
Expand All @@ -40,7 +40,7 @@ jobs:
echo "python_version=$python_version" >> "$GITHUB_ENV"
fi
- name: Build ${{ matrix.dockerfile }} using python ${{ matrix.python }}
uses: docker/build-push-action@v5
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 #6.5.0
with:
context: .
file: ./${{ matrix.dockerfile }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/client-pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Build and Publish Release Artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
name: Install Python
with:
python-version: '3.11'
Expand All @@ -26,7 +26,7 @@ jobs:
python setup.py sdist
python setup.py bdist_wheel
shell: bash
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 #4.3.5
with:
path: ./client/dist/qiskit_serverless*
- name: Publish to PyPi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/client-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
working-directory: ./client

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
verify_docs_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: '3.11'
- name: Install dependencies
Expand All @@ -25,7 +25,7 @@ jobs:
tox -edocs
- name: Upload docs artifact
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 #4.3.5
with:
name: html_docs
path: ./docs/_build/html/
4 changes: 2 additions & 2 deletions .github/workflows/gateway-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
working-directory: ./gateway

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
with:
fetch-depth: 0

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/icr-image-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ jobs:
platforms: linux/amd64,linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- name: Login to IBM Container Registry
uses: docker/login-action@v2
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 #3.3.0
with:
registry: icr.io
username: iamapikey
password: ${{ secrets.IBMCLOUD_API_KEY }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf #3.2.0
with:
platforms: 'arm64,amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db #3.6.1
- name: Build and push on dispatch
if : github.event_name == 'workflow_dispatch'
uses: ./.github/actions/icr-build-and-push-images
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kubernetes-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- name: Install Kind
run: |
curl -Lo ./kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.20.0/kind-$(uname)-amd64"
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
GATEWAY=$(kubectl get pod -l app.kubernetes.io/name=gateway -o name)
kubectl wait --for=condition=Ready "$GATEWAY" --timeout 5m
- name: setup python
uses: actions/setup-python@v4
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: "3.11"
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notebook-local-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: '3.11'
- name: patch notebooks
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proxy-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
working-directory: ./proxy

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1
with:
python-version: '3.11'
- name: Install dependencies
Expand All @@ -29,7 +29,7 @@ jobs:
run: |
tox -edocs
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e #4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html/
10 changes: 5 additions & 5 deletions .github/workflows/publish-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ jobs:
- 'qiskit-serverless'
steps:
- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4.2.0 #4.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- name: Build Helm Package
id: package
run: |
helm package ./charts/${{ matrix.release }} -u
echo "VERSION=${GITHUB_REF_NAME/v}" >> $GITHUB_OUTPUT
- name: Upload Helm Package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 #4.3.5
with:
name: helm-package
path: ./${{ matrix.release }}-${{ steps.package.outputs.VERSION }}.tgz
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f #1.3.2
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 #1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-component-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
update_component_versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
with:
fetch-depth: 0
fetch-tags: true
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
sed -i "s/${OLDNUM}-py310/${NEWNUM}-py310/g" docs/deployment/deploying_custom_image_function.rst
- name: Create PR
id: cpr
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@cd5c7e4b8bff84befe9c12e7cffbecfda02c7ce9 #6.1.0
with:
branch: "update-version-${{ github.event.inputs.new_version }}"
title: "update-version-${{ github.event.inputs.new_version }}"