Update dependency cryptography to v43.0.3 #305
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
name: Test redhat-csp-download | |
on: | |
push: | |
paths: | |
- .github/workflows/redhat-csp-download.yaml | |
- redhat-csp-download/** | |
pull_request: | |
paths: | |
- .github/workflows/redhat-csp-download.yaml | |
- redhat-csp-download/** | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
redhat-csp-download: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0 | |
with: | |
dockerfile: redhat-csp-download/Dockerfile_build | |
- name: Switch the action to use the Dockerfile_build | |
run: | | |
mv redhat-csp-download/Dockerfile redhat-csp-download/Dockerfile_runnable | |
mv redhat-csp-download/Dockerfile_build redhat-csp-download/Dockerfile | |
- name: redhat-csp-download | |
uses: ./redhat-csp-download | |
with: | |
rh_username: ${{ secrets.RH_USERNAME }} | |
rh_password: ${{ secrets.RH_PASSWORD }} | |
download: '[{"file":"/github/workspace/eap-connectors.zip","url":"https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId=37193"}]' | |
- name: Check downloaded file exists | |
run: | | |
if [ -z "${{ secrets.RH_USERNAME }}" ] || [ -z "${{ secrets.RH_PASSWORD }}" ] | |
then | |
echo "RH_USERNAME or RH_PASSWORD is empty. Skipping." | |
exit 0 | |
fi | |
FILE="eap-connectors.zip" | |
if [ -f "$FILE" ]; then | |
echo "$FILE exists." | |
else | |
echo "$FILE does not exist." | |
exit 1 | |
fi |