diff --git a/.github/workflows/automated-release-workflow.yml b/.github/workflows/automated-release-workflow.yml index 692867db0..91e02ebab 100644 --- a/.github/workflows/automated-release-workflow.yml +++ b/.github/workflows/automated-release-workflow.yml @@ -18,26 +18,23 @@ jobs: if: github.ref == 'refs/heads/main' steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Deep Fetch run: | git fetch --prune --unshallow - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + go-version: ${{ env.GO_VERSION }} - name: Configure Docker Credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}} diff --git a/.github/workflows/bias-language-workflow.yml b/.github/workflows/bias-language-workflow.yml index 2597b467a..bea8dfd97 100644 --- a/.github/workflows/bias-language-workflow.yml +++ b/.github/workflows/bias-language-workflow.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest name: Detecting Biased Language steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - id: biased-lang-linter uses: splunk/biased-lang-linter@main continue-on-error: false diff --git a/.github/workflows/build-test-push-workflow.yml b/.github/workflows/build-test-push-workflow.yml index 6dd161029..539329540 100644 --- a/.github/workflows/build-test-push-workflow.yml +++ b/.github/workflows/build-test-push-workflow.yml @@ -4,14 +4,14 @@ jobs: check-formating: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Check Source formatting run: make fmt && if [[ $? -ne 0 ]]; then false; fi - name: Lint source code @@ -20,14 +20,14 @@ jobs: runs-on: ubuntu-latest needs: check-formating steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install goveralls run: | go version @@ -54,19 +54,17 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }} steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install Ginkgo run: | make setup/ginkgo - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Install Operator SDK run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) @@ -76,7 +74,7 @@ jobs: sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -100,14 +98,12 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }} steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -169,10 +165,10 @@ jobs: run: | echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV - name: Chekcout code - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Change splunk enterprise to release image on main branches if: github.ref == 'refs/heads/main' run: @@ -182,7 +178,7 @@ jobs: with: version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }} - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 - name: Install AWS CLI run: | curl "${{ steps.dotenv.outputs.AWSCLI_URL}}" -o "awscliv2.zip" @@ -190,9 +186,9 @@ jobs: sudo ./aws/install --update aws --version - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install Ginkgo run: | make setup/ginkgo @@ -207,21 +203,19 @@ jobs: curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv /tmp/eksctl /usr/local/bin eksctl version - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Install Operator SDK run: | sudo curl -L -o /usr/local/bin/operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}/operator-sdk-${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}-x86_64-linux-gnu sudo chmod +x /usr/local/bin/operator-sdk - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN}} - name: Pull Splunk Enterprise Image run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -294,19 +288,17 @@ jobs: TAG: latest steps: - name: Checkout Code - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/bundle-push-post-release.yml b/.github/workflows/bundle-push-post-release.yml index 61505dfb9..036c4b21e 100644 --- a/.github/workflows/bundle-push-post-release.yml +++ b/.github/workflows/bundle-push-post-release.yml @@ -15,25 +15,26 @@ jobs: if: github.ref == 'refs/heads/main' steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Deep Fetch run: | git fetch --prune --unshallow - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + go-version: ${{ env.GO_VERSION }} + + - name: setup-docker + uses: docker-practice/actions-setup-docker@v1 - name: Configure Docker Credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}} @@ -42,7 +43,7 @@ jobs: run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) export OS=$(uname | awk '{print tolower($0)}') - export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }} + export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }} sudo curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk diff --git a/.github/workflows/helm-test-workflow.yml b/.github/workflows/helm-test-workflow.yml index 2ab1d67f9..22eea8ac5 100644 --- a/.github/workflows/helm-test-workflow.yml +++ b/.github/workflows/helm-test-workflow.yml @@ -13,26 +13,26 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }} steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + go-version: ${{ env.GO_VERSION }} + - name: setup-docker + uses: docker-practice/actions-setup-docker@v1 - name: Install Operator SDK run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) export OS=$(uname | awk '{print tolower($0)}') - export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }} + export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }} sudo curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -89,17 +89,17 @@ jobs: echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV echo "HELM_REPO_PATH=splunk" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Set GITHUB SHA value run: | echo "HELM_GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV - name: Install Kubectl uses: Azure/setup-kubectl@v3 with: - version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }} + version: ${{ env.KUBECTL_VERSION }} - name: Install kuttl run: | sudo curl -LO https://github.com/kudobuilder/kuttl/releases/download/v0.12.0/kuttl_0.12.0_linux_x86_64.tar.gz @@ -107,17 +107,17 @@ jobs: sudo chmod +x kubectl-kuttl sudo mv kubectl-kuttl /usr/local/bin/kubectl-kuttl - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 - name: Install AWS CLI run: | - curl "${{ steps.dotenv.outputs.AWSCLI_URL}}" -o "awscliv2.zip" + curl "${{ env.AWSCLI_URL}}" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install --update aws --version - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install Helm run: | curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 @@ -126,20 +126,18 @@ jobs: DESIRED_VERSION=v3.8.2 bash get_helm.sh - name: Install EKS CTL run: | - curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp + curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ env.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv /tmp/eksctl /usr/local/bin eksctl version - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN}} - name: Pull Splunk Enterprise Image run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -163,7 +161,7 @@ jobs: docker tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:latest - name: Create EKS cluster run: | - export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }} + export EKS_CLUSTER_K8_VERSION=${{ env.EKS_CLUSTER_K8_VERSION }} make cluster-up - name: install metric server run: | diff --git a/.github/workflows/int-test-azure-workflow.yml b/.github/workflows/int-test-azure-workflow.yml index ace8d7c5b..aa17dda7e 100644 --- a/.github/workflows/int-test-azure-workflow.yml +++ b/.github/workflows/int-test-azure-workflow.yml @@ -12,21 +12,19 @@ jobs: SPLUNK_OPERATOR_IMAGE_NAME: splunk/splunk-operator CONTAINER_REGISTRY: ${{ secrets.AZURE_CONTAINER_REGISTRY }} steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + go-version: ${{ env.GO_VERSION }} - name: Install Operator SDK run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) export OS=$(uname | awk '{print tolower($0)}') - export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }} + export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }} sudo curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk @@ -63,10 +61,10 @@ jobs: AZURE_REGION: ${{ secrets.AZURE_REGION }} steps: - name: Checkout code - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Set Cluster Name run: | echo "TEST_CLUSTER_NAME=az${{ github.run_id }}" >> $GITHUB_ENV @@ -77,19 +75,19 @@ jobs: - name: AZ AKS Create uses: azure/CLI@v1 with: - azcliversion: ${{ steps.dotenv.outputs.AZ_CLI_VERSION }} + azcliversion: ${{ env.AZ_CLI_VERSION }} inlineScript: | az aks create -n ${{ env.TEST_CLUSTER_NAME }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --generate-ssh-keys -l westus --service-principal ${{ secrets.AZURE_CREDENTIALS_CLIENT_ID }} --client-secret ${{ secrets.AZURE_CREDENTIALS_CLIENT_SECRET }} --node-count ${{ env.CLUSTER_WORKERS }} --node-vm-size standard_d8_v3 - name: Wait for Cluster to be Ready uses: azure/CLI@v1 with: - azcliversion: ${{ steps.dotenv.outputs.AZ_CLI_VERSION }} + azcliversion: ${{ env.AZ_CLI_VERSION }} inlineScript: | az aks wait -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} -n ${{ env.TEST_CLUSTER_NAME }} --created --interval 60 --timeout 1800 - name: Az ACR attach to AKS uses: azure/CLI@v1 with: - azcliversion: ${{ steps.dotenv.outputs.AZ_CLI_VERSION }} + azcliversion: ${{ env.AZ_CLI_VERSION }} inlineScript: | az aks update -n ${{ env.TEST_CLUSTER_NAME }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --attach-acr ${{ secrets.AZURE_CONTAINER_REGISTRY }} int-tests-appframeworkazure: @@ -133,10 +131,10 @@ jobs: run: | echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: 'Login via Azure CLI' uses: azure/login@v1 with: @@ -144,13 +142,13 @@ jobs: - name: Install Kubectl uses: Azure/setup-kubectl@v3 with: - version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }} + version: ${{ env.KUBECTL_VERSION }} - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install Go Lint run: | go version @@ -158,10 +156,8 @@ jobs: - name: Install Ginkgo run: | make setup/ginkgo - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN}} @@ -233,6 +229,6 @@ jobs: if: ${{ always() }} uses: azure/CLI@v1 with: - azcliversion: ${{ steps.dotenv.outputs.AZ_CLI_VERSION }} + azcliversion: ${{ env.AZ_CLI_VERSION }} inlineScript: | az aks delete --name ${{ env.TEST_CLUSTER_NAME }} --resource-group ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} -y \ No newline at end of file diff --git a/.github/workflows/int-test-workflow.yml b/.github/workflows/int-test-workflow.yml index 9b904b084..4db5b263f 100644 --- a/.github/workflows/int-test-workflow.yml +++ b/.github/workflows/int-test-workflow.yml @@ -14,26 +14,24 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }} steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + go-version: ${{ env.GO_VERSION }} - name: Install Operator SDK run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) export OS=$(uname | awk '{print tolower($0)}') - export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }} + export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }} sudo curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -101,26 +99,26 @@ jobs: run: | echo "SPLUNK_ENTERPRISE_IMAGE=${{ steps.dotenv.outputs.SPLUNK_ENTERPRISE_RELEASE_IMAGE }}" >> $GITHUB_ENV - name: Checkcout code - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Install Kubectl uses: Azure/setup-kubectl@v3 with: - version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }} + version: ${{ env.KUBECTL_VERSION }} - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 - name: Install AWS CLI run: | - curl "${{ steps.dotenv.outputs.AWSCLI_URL}}" -o "awscliv2.zip" + curl "${{ env.AWSCLI_URL}}" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install --update aws --version - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install Ginkgo run: | make setup/ginkgo @@ -132,20 +130,18 @@ jobs: DESIRED_VERSION=v3.8.2 bash get_helm.sh - name: Install EKS CTL run: | - curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp + curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ env.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv /tmp/eksctl /usr/local/bin eksctl version - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN}} - name: Pull Splunk Enterprise Image run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -169,7 +165,7 @@ jobs: docker tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:latest - name: Create EKS cluster run: | - export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }} + export EKS_CLUSTER_K8_VERSION=${{ env.EKS_CLUSTER_K8_VERSION }} make cluster-up - name: install metric server run: | diff --git a/.github/workflows/manual-int-test-workflow.yml b/.github/workflows/manual-int-test-workflow.yml index 7bfc4c333..6c2ddbcfd 100644 --- a/.github/workflows/manual-int-test-workflow.yml +++ b/.github/workflows/manual-int-test-workflow.yml @@ -63,16 +63,16 @@ jobs: echo "CLUSTER_NODES=2" >> $GITHUB_ENV fi - name: Checkout code - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Install Kubectl uses: Azure/setup-kubectl@v3 with: version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }} - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 - name: Install AWS CLI run: | curl "${{ steps.dotenv.outputs.AWSCLI_URL}}" -o "awscliv2.zip" @@ -80,7 +80,7 @@ jobs: sudo ./aws/install --update aws --version - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - name: Install Ginkgo @@ -91,21 +91,19 @@ jobs: curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv /tmp/eksctl /usr/local/bin eksctl version - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Install Operator SDK run: | sudo curl -L -o /usr/local/bin/operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}/operator-sdk-${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}-x86_64-linux-gnu sudo chmod +x /usr/local/bin/operator-sdk - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN}} - name: Pull Splunk Enterprise Image run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -172,14 +170,12 @@ jobs: SPLUNK_OPERATOR_IMAGE_NAME: splunk/splunk-operator TAG: int steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -193,7 +189,7 @@ jobs: run: | docker tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:${{ env.TAG }} - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}} diff --git a/.github/workflows/merge-develop-to-main-workflow.yml b/.github/workflows/merge-develop-to-main-workflow.yml index e02002ba0..afed125cd 100644 --- a/.github/workflows/merge-develop-to-main-workflow.yml +++ b/.github/workflows/merge-develop-to-main-workflow.yml @@ -16,23 +16,23 @@ jobs: runs-on: ubuntu-latest if: github.ref == 'refs/heads/develop' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: main - name: Reset main branch run: | git fetch origin develop:develop git reset --hard develop - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Create Pull Request uses: peter-evans/create-pull-request@v3.10.1 with: branch: "promote-develop-to-main-${{ github.event.inputs.release_version }}" base: "main" title: "Promote Develop to main for Splunk Operator Release ${{ github.event.inputs.release_version }}" - reviewers: "${{ steps.dotenv.outputs.REVIEWERS }}" + reviewers: "${{ env.REVIEWERS }}" body: | Automated Pull Request To Merge Develop To Main For Release Version ${{ github.event.inputs.release_version }} @@ -42,7 +42,7 @@ jobs: if: github.ref == 'refs/heads/develop' steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "promote-develop-to-main-${{ github.event.inputs.release_version }}" @@ -50,23 +50,21 @@ jobs: run: | git fetch --prune --unshallow - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Configure Docker Credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}} - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - + go-version: ${{ env.GO_VERSION }} + - name: Install goveralls run: | go get github.com/mattn/goveralls@latest @@ -75,7 +73,7 @@ jobs: run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) export OS=$(uname | awk '{print tolower($0)}') - export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }} + export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }} sudo curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk diff --git a/.github/workflows/namespace-scope-int-workflow.yml b/.github/workflows/namespace-scope-int-workflow.yml index 458bc31f0..af1ee7e6b 100644 --- a/.github/workflows/namespace-scope-int-workflow.yml +++ b/.github/workflows/namespace-scope-int-workflow.yml @@ -58,51 +58,49 @@ jobs: echo "CLUSTER_NODES=2" >> $GITHUB_ENV fi - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: develop - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Install Kubectl uses: Azure/setup-kubectl@v3 with: - version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }} + version: ${{ env.KUBECTL_VERSION }} - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 - name: Install AWS CLI run: | - curl "${{ steps.dotenv.outputs.AWSCLI_URL}}" -o "awscliv2.zip" + curl "${{ env.AWSCLI_URL}}" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install --update aws --version - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install Ginkgo run: | make setup/ginkgo - name: Install EKS CTL run: | - curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp + curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ env.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv /tmp/eksctl /usr/local/bin eksctl version - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Install Operator SDK run: | - sudo curl -L -o /usr/local/bin/operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}/operator-sdk-${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}-x86_64-linux-gnu + sudo curl -L -o /usr/local/bin/operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }}/operator-sdk-${{ env.OPERATOR_SDK_VERSION }}-x86_64-linux-gnu sudo chmod +x /usr/local/bin/operator-sdk - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN}} - name: Pull Splunk Enterprise Edge Image run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -124,7 +122,7 @@ jobs: docker push ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_ENTERPRISE_IMAGE }} - name: Create EKS cluster run: | - export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }} + export EKS_CLUSTER_K8_VERSION=${{ env.EKS_CLUSTER_K8_VERSION }} make cluster-up - name: install metric server run: | diff --git a/.github/workflows/nightly-int-test-workflow.yml b/.github/workflows/nightly-int-test-workflow.yml index 5c4ee121b..3c1ff68e5 100644 --- a/.github/workflows/nightly-int-test-workflow.yml +++ b/.github/workflows/nightly-int-test-workflow.yml @@ -11,28 +11,26 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }} steps: - - uses: actions/checkout@v2 - with: + - uses: actions/checkout@v3 + with: ref: develop - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + go-version: ${{ env.GO_VERSION }} - name: Install Operator SDK run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) export OS=$(uname | awk '{print tolower($0)}') - export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }} + export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }} sudo curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -102,47 +100,45 @@ jobs: echo "CLUSTER_WORKERS=5" >> $GITHUB_ENV echo "CLUSTER_NODES=2" >> $GITHUB_ENV fi - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: develop - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Install Kubectl uses: Azure/setup-kubectl@v3 with: - version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }} + version: ${{ env.KUBECTL_VERSION }} - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 - name: Install AWS CLI run: | - curl "${{ steps.dotenv.outputs.AWSCLI_URL}}" -o "awscliv2.zip" + curl "${{ env.AWSCLI_URL}}" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install --update aws --version - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} - - name: Install Ginkgo + go-version: ${{ env.GO_VERSION }} + - name: Install Ginkgo run: | make setup/ginkgo - name: Install EKS CTL run: | - curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp + curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ env.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv /tmp/eksctl /usr/local/bin eksctl version - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN}} - name: Pull Splunk Enterprise Image run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -163,7 +159,7 @@ jobs: docker tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:latest - name: Create EKS cluster run: | - export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }} + export EKS_CLUSTER_K8_VERSION=${{ env.EKS_CLUSTER_K8_VERSION }} make cluster-up - name: install metric server run: | @@ -207,16 +203,14 @@ jobs: SPLUNK_OPERATOR_IMAGE_NAME: splunk/splunk-operator TAG: edge steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: develop - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -230,7 +224,7 @@ jobs: run: | docker tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:${{ env.TAG }} - name: Configure Docker Hub credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}} diff --git a/.github/workflows/pre-release-workflow.yml b/.github/workflows/pre-release-workflow.yml index b41e2b678..89a774ed9 100644 --- a/.github/workflows/pre-release-workflow.yml +++ b/.github/workflows/pre-release-workflow.yml @@ -33,7 +33,7 @@ jobs: ', github.ref) steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Deep Fetch run: | @@ -43,23 +43,20 @@ jobs: run: | git log $(git describe --tags --abbrev=0)..HEAD --oneline >> docs/ChangeLog-NEW.md - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Configure Docker Credentials - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}} - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ${{ steps.dotenv.outputs.GO_VERSION }} + go-version: ${{ env.GO_VERSION }} - name: Install goveralls run: | @@ -173,7 +170,7 @@ jobs: run: | export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) export OS=$(uname | awk '{print tolower($0)}') - export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }} + export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${{ env.OPERATOR_SDK_VERSION }} sudo curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} sudo chmod +x operator-sdk_${OS}_${ARCH} sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk @@ -202,7 +199,7 @@ jobs: with: branch: "release/${{ github.event.inputs.release_version }}" title: "Splunk Operator ${{ github.event.inputs.release_version }} release" - reviewers: "${{ steps.dotenv.outputs.REVIEWERS }}" + reviewers: "${{ env.REVIEWERS }}" body: | ### Automated Pull Request for Splunk Operator Release ${{ github.event.inputs.release_version }} * Changes added to docs/ChangeLog-NEW.md. Please filter and update ChangeLog.md diff --git a/.github/workflows/prodsec-workflow.yml b/.github/workflows/prodsec-workflow.yml index 30cf9fdc4..bfb4427a9 100644 --- a/.github/workflows/prodsec-workflow.yml +++ b/.github/workflows/prodsec-workflow.yml @@ -24,10 +24,10 @@ jobs: ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }} S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }} steps: - - uses: actions/checkout@v2 - - name: Dotenv Action - id: dotenv - uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359 + - uses: actions/checkout@v3 + - name: Load .env file + run: | + cat .env >> $GITHUB_ENV - name: Run FOSSA Test uses: fossas/fossa-action@main with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffd713373..ca90d55ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0