From 2ba37119d35e949cfc811645f3d2405e897d4879 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 20 May 2020 18:39:56 +0000 Subject: [PATCH 001/185] Updating GHES workflows --- automation/greetings.yml | 13 -- automation/label.yml | 19 --- .../properties/greetings.properties.json | 6 - automation/properties/label.properties.json | 6 - ci/aws.yml | 80 ------------ ci/azure.yml | 46 ------- ci/django.yml | 30 ----- ci/elixir.yml | 24 ---- ci/gem-push.yml | 42 ------- ci/google.yml | 75 ------------ ci/haskell.yml | 40 ------ ci/properties/aws.properties.json | 6 - ci/properties/azure.properties.json | 6 - ci/properties/django.properties.json | 6 - ci/properties/elixir.properties.json | 6 - ci/properties/gem-push.properties.json | 6 - ci/properties/google.properties.json | 6 - ci/properties/haskell.properties.json | 6 - ci/properties/python-app.properties.json | 6 - ci/properties/python-package.properties.json | 6 - ci/properties/python-publish.properties.json | 6 - ci/properties/ruby.properties.json | 6 - ci/properties/tencent.properties.json | 6 - ci/properties/terraform.properties.json | 6 - ci/properties/wpf-dotnet-core.properties.json | 6 - ci/python-app.yml | 36 ------ ci/python-package.yml | 39 ------ ci/python-publish.yml | 31 ----- ci/ruby.yml | 33 ----- ci/tencent.yml | 75 ------------ ci/terraform.yml | 90 -------------- ci/wpf-dotnet-core.yml | 115 ------------------ icons/angular.svg | 1 - icons/aspdotnet.svg | 1 - icons/django.svg | 1 - icons/dotnet.svg | 1 - icons/elixir.svg | 1 - icons/grunt.svg | 1 - icons/gulp.svg | 1 - icons/haskell.svg | 1 - icons/html.svg | 1 - icons/python.svg | 1 - icons/ruby-gems.svg | 1 - icons/ruby.svg | 1 - icons/tencentcloud.svg | 29 ----- icons/terraform.svg | 1 - icons/uwp.svg | 1 - icons/webpack.svg | 1 - icons/xamarin.svg | 1 - icons/xcode.svg | 1 - 50 files changed, 930 deletions(-) delete mode 100644 automation/greetings.yml delete mode 100644 automation/label.yml delete mode 100644 automation/properties/greetings.properties.json delete mode 100644 automation/properties/label.properties.json delete mode 100644 ci/aws.yml delete mode 100644 ci/azure.yml delete mode 100644 ci/django.yml delete mode 100644 ci/elixir.yml delete mode 100644 ci/gem-push.yml delete mode 100644 ci/google.yml delete mode 100644 ci/haskell.yml delete mode 100644 ci/properties/aws.properties.json delete mode 100644 ci/properties/azure.properties.json delete mode 100644 ci/properties/django.properties.json delete mode 100644 ci/properties/elixir.properties.json delete mode 100644 ci/properties/gem-push.properties.json delete mode 100644 ci/properties/google.properties.json delete mode 100644 ci/properties/haskell.properties.json delete mode 100644 ci/properties/python-app.properties.json delete mode 100644 ci/properties/python-package.properties.json delete mode 100644 ci/properties/python-publish.properties.json delete mode 100644 ci/properties/ruby.properties.json delete mode 100644 ci/properties/tencent.properties.json delete mode 100644 ci/properties/terraform.properties.json delete mode 100644 ci/properties/wpf-dotnet-core.properties.json delete mode 100644 ci/python-app.yml delete mode 100644 ci/python-package.yml delete mode 100644 ci/python-publish.yml delete mode 100644 ci/ruby.yml delete mode 100644 ci/tencent.yml delete mode 100644 ci/terraform.yml delete mode 100644 ci/wpf-dotnet-core.yml delete mode 100644 icons/angular.svg delete mode 100644 icons/aspdotnet.svg delete mode 100644 icons/django.svg delete mode 100644 icons/dotnet.svg delete mode 100644 icons/elixir.svg delete mode 100644 icons/grunt.svg delete mode 100644 icons/gulp.svg delete mode 100644 icons/haskell.svg delete mode 100644 icons/html.svg delete mode 100644 icons/python.svg delete mode 100644 icons/ruby-gems.svg delete mode 100644 icons/ruby.svg delete mode 100644 icons/tencentcloud.svg delete mode 100644 icons/terraform.svg delete mode 100644 icons/uwp.svg delete mode 100644 icons/webpack.svg delete mode 100644 icons/xamarin.svg delete mode 100644 icons/xcode.svg diff --git a/automation/greetings.yml b/automation/greetings.yml deleted file mode 100644 index 28ee6b2f11..0000000000 --- a/automation/greetings.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Greetings - -on: [pull_request, issues] - -jobs: - greeting: - runs-on: ubuntu-latest - steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Message that will be displayed on users'' first issue' - pr-message: 'Message that will be displayed on users'' first pr' diff --git a/automation/label.yml b/automation/label.yml deleted file mode 100644 index e90b599b9a..0000000000 --- a/automation/label.yml +++ /dev/null @@ -1,19 +0,0 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler/blob/master/README.md - -name: Labeler -on: [pull_request] - -jobs: - label: - - runs-on: ubuntu-latest - - steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/automation/properties/greetings.properties.json b/automation/properties/greetings.properties.json deleted file mode 100644 index 743afe3863..0000000000 --- a/automation/properties/greetings.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Greetings", - "description": "Greets users who are first time contributors to the repo", - "iconName": "octicon smiley", - "categories": ["Automation", "SDLC"] -} diff --git a/automation/properties/label.properties.json b/automation/properties/label.properties.json deleted file mode 100644 index 87a00c885d..0000000000 --- a/automation/properties/label.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Labeler", - "description": "Labels pull requests based on the files changed", - "iconName": "octicon tag", - "categories": ["Automation", "SDLC"] -} diff --git a/ci/aws.yml b/ci/aws.yml deleted file mode 100644 index 40094ae9be..0000000000 --- a/ci/aws.yml +++ /dev/null @@ -1,80 +0,0 @@ -# This workflow will build and push a new container image to Amazon ECR, -# and then will deploy a new task definition to Amazon ECS, when a release is created -# -# To use this workflow, you will need to complete the following set-up steps: -# -# 1. Create an ECR repository to store your images. -# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. -# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. -# Replace the value of `aws-region` in the workflow below with your repository's region. -# -# 2. Create an ECS task definition, an ECS cluster, and an ECS service. -# For example, follow the Getting Started guide on the ECS console: -# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun -# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names. -# -# 3. Store your ECS task definition as a JSON file in your repository. -# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`. -# Replace the value of `task-definition` in the workflow below with your JSON file's name. -# Replace the value of `container-name` in the workflow below with the name of the container -# in the `containerDefinitions` section of the task definition. -# -# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. -# See the documentation for each action used below for the recommended IAM policies for this IAM user, -# and best practices on handling the access key credentials. - -on: - release: - types: [created] - -name: Deploy to Amazon ECS - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-2 - - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: my-ecr-repo - IMAGE_TAG: ${{ github.sha }} - run: | - # Build a docker container and - # push it to ECR so that it can - # be deployed to ECS. - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" - - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: sample-app - image: ${{ steps.build-image.outputs.image }} - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: sample-app-service - cluster: default - wait-for-service-stability: true \ No newline at end of file diff --git a/ci/azure.yml b/ci/azure.yml deleted file mode 100644 index a638c4cb3e..0000000000 --- a/ci/azure.yml +++ /dev/null @@ -1,46 +0,0 @@ -# This workflow will build and push a node.js application to an Azure Web App when a release is created. -# -# This workflow assumes you have already created the target Azure App Service web app. -# For instructions see https://docs.microsoft.com/azure/app-service/app-service-plan-manage#create-an-app-service-plan -# -# To configure this workflow: -# -# 1. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. -# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret -# -# 2. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). -# -# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions -# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples -on: - release: - types: [created] - -env: - AZURE_WEBAPP_NAME: your-app-name # set this to your application's name - AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root - NODE_VERSION: '10.x' # set this to the node version to use - -jobs: - build-and-deploy: - name: Build and Deploy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v1 - with: - node-version: ${{ env.NODE_VERSION }} - - name: npm install, build, and test - run: | - # Build and test the project, then - # deploy to Azure Web App. - npm install - npm run build --if-present - npm run test --if-present - - name: 'Deploy to Azure WebApp' - uses: azure/webapps-deploy@v2 - with: - app-name: ${{ env.AZURE_WEBAPP_NAME }} - publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} - package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} diff --git a/ci/django.yml b/ci/django.yml deleted file mode 100644 index c806047783..0000000000 --- a/ci/django.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Django CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.6, 3.7, 3.8] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Run Tests - run: | - python manage.py test diff --git a/ci/elixir.yml b/ci/elixir.yml deleted file mode 100644 index 4de7dcbd84..0000000000 --- a/ci/elixir.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Elixir CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Setup elixir - uses: actions/setup-elixir@v1 - with: - elixir-version: 1.9.4 # Define the elixir version [required] - otp-version: 22.2 # Define the OTP version [required] - - name: Install Dependencies - run: mix deps.get - - name: Run Tests - run: mix test diff --git a/ci/gem-push.yml b/ci/gem-push.yml deleted file mode 100644 index 08733c7e7a..0000000000 --- a/ci/gem-push.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Ruby Gem - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - name: Build + Publish - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Ruby 2.6 - uses: actions/setup-ruby@v1 - with: - version: 2.6.x - - - name: Publish to GPR - run: | - mkdir -p $HOME/.gem - touch $HOME/.gem/credentials - chmod 0600 $HOME/.gem/credentials - printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials - gem build *.gemspec - gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem - env: - GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}} - OWNER: username - - - name: Publish to RubyGems - run: | - mkdir -p $HOME/.gem - touch $HOME/.gem/credentials - chmod 0600 $HOME/.gem/credentials - printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials - gem build *.gemspec - gem push *.gem - env: - GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}} diff --git a/ci/google.yml b/ci/google.yml deleted file mode 100644 index b8d1079527..0000000000 --- a/ci/google.yml +++ /dev/null @@ -1,75 +0,0 @@ -# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE when a release is created -# -# To configure this workflow: -# -# 1. Ensure that your repository contains the necessary configuration for your Google Kubernetes Engine cluster, including deployment.yml, kustomization.yml, service.yml, etc. -# -# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project, GKE_EMAIL with the service account email, GKE_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs). -# -# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, REGISTRY_HOSTNAME and DEPLOYMENT_NAME environment variables (below). - -name: Build and Deploy to GKE - -on: - release: - types: [created] - -# Environment variables available to all jobs and steps in this workflow -env: - GKE_PROJECT: ${{ secrets.GKE_PROJECT }} - GKE_EMAIL: ${{ secrets.GKE_EMAIL }} - GITHUB_SHA: ${{ github.sha }} - GKE_ZONE: us-west1-a - GKE_CLUSTER: example-gke-cluster - IMAGE: gke-test - REGISTRY_HOSTNAME: gcr.io - DEPLOYMENT_NAME: gke-test - -jobs: - setup-build-publish-deploy: - name: Setup, Build, Publish, and Deploy - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - # Setup gcloud CLI - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master - with: - version: '270.0.0' - service_account_email: ${{ secrets.GKE_EMAIL }} - service_account_key: ${{ secrets.GKE_KEY }} - - # Configure docker to use the gcloud command-line tool as a credential helper - - run: | - # Set up docker to authenticate - # via gcloud command-line tool. - gcloud auth configure-docker - - # Build the Docker image - - name: Build - run: | - docker build -t "$REGISTRY_HOSTNAME"/"$GKE_PROJECT"/"$IMAGE":"$GITHUB_SHA" \ - --build-arg GITHUB_SHA="$GITHUB_SHA" \ - --build-arg GITHUB_REF="$GITHUB_REF" . - - # Push the Docker image to Google Container Registry - - name: Publish - run: | - docker push $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:$GITHUB_SHA - - # Set up kustomize - - name: Set up Kustomize - run: | - curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 - chmod u+x ./kustomize - - # Deploy the Docker image to the GKE cluster - - name: Deploy - run: | - gcloud container clusters get-credentials $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT - ./kustomize edit set image $REGISTRY_HOSTNAME/$GKE_PROJECT/$IMAGE:${GITHUB_SHA} - ./kustomize build . | kubectl apply -f - - kubectl rollout status deployment/$DEPLOYMENT_NAME - kubectl get services -o wide diff --git a/ci/haskell.yml b/ci/haskell.yml deleted file mode 100644 index 4bc2d165a1..0000000000 --- a/ci/haskell.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Haskell CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-haskell@v1 - with: - ghc-version: '8.8.2' - cabal-version: '3.0' - - - name: Cache - uses: actions/cache@v1 - env: - cache-name: cache-cabal - with: - path: ~/.cabal - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - name: Install dependencies - run: | - cabal update - cabal build --only-dependencies --enable-tests --enable-benchmarks - - name: Build - run: cabal build --enable-tests --enable-benchmarks all - - name: Run tests - run: cabal test all diff --git a/ci/properties/aws.properties.json b/ci/properties/aws.properties.json deleted file mode 100644 index 2988e7c0c7..0000000000 --- a/ci/properties/aws.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Deploy to Amazon ECS", - "description": "Deploy a container to an Amazon ECS service powered by AWS Fargate or Amazon EC2.", - "iconName": "aws", - "categories": null -} \ No newline at end of file diff --git a/ci/properties/azure.properties.json b/ci/properties/azure.properties.json deleted file mode 100644 index ba92f6fa5c..0000000000 --- a/ci/properties/azure.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Deploy Node.js to Azure Web App", - "description": "Build a Node.js project and deploy it to an Azure Web App.", - "iconName": "azure", - "categories": null -} \ No newline at end of file diff --git a/ci/properties/django.properties.json b/ci/properties/django.properties.json deleted file mode 100644 index 30154416e2..0000000000 --- a/ci/properties/django.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Django", - "description": "Build and Test a Django Project", - "iconName": "django", - "categories": ["Python", "Django"] -} diff --git a/ci/properties/elixir.properties.json b/ci/properties/elixir.properties.json deleted file mode 100644 index 572992df13..0000000000 --- a/ci/properties/elixir.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Elixir", - "description": "Build and test an Elixir project with Mix.", - "iconName": "elixir", - "categories": ["Elixir", "Erlang"] -} diff --git a/ci/properties/gem-push.properties.json b/ci/properties/gem-push.properties.json deleted file mode 100644 index c54e7b57d6..0000000000 --- a/ci/properties/gem-push.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Ruby Gem", - "description": "Pushes a Ruby Gem to RubyGems and GitHub Package Registry.", - "iconName": "ruby-gems", - "categories": ["Ruby", "SDLC"] -} diff --git a/ci/properties/google.properties.json b/ci/properties/google.properties.json deleted file mode 100644 index dee44b9be2..0000000000 --- a/ci/properties/google.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Build and Deploy to GKE", - "description": "Build a docker container, publish it to Google Container Registry, and deploy to GKE.", - "iconName": "googlegke", - "categories": null -} \ No newline at end of file diff --git a/ci/properties/haskell.properties.json b/ci/properties/haskell.properties.json deleted file mode 100644 index 2dedbf2e86..0000000000 --- a/ci/properties/haskell.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Haskell", - "description": "Build and test a Haskell project with Cabal.", - "iconName": "haskell", - "categories": ["Haskell"] -} diff --git a/ci/properties/python-app.properties.json b/ci/properties/python-app.properties.json deleted file mode 100644 index 34e4a5780a..0000000000 --- a/ci/properties/python-app.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Python application", - "description": "Create and test a Python application.", - "iconName": "python", - "categories": ["Python"] -} diff --git a/ci/properties/python-package.properties.json b/ci/properties/python-package.properties.json deleted file mode 100644 index 4e09d40d5f..0000000000 --- a/ci/properties/python-package.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Python package", - "description": "Create and test a Python package on multiple Python versions.", - "iconName": "python", - "categories": ["Python"] -} diff --git a/ci/properties/python-publish.properties.json b/ci/properties/python-publish.properties.json deleted file mode 100644 index 4fd9eceb68..0000000000 --- a/ci/properties/python-publish.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Publish Python Package", - "description": "Publish a Python Package to PyPI on release.", - "iconName": "python", - "categories": ["Python"] -} diff --git a/ci/properties/ruby.properties.json b/ci/properties/ruby.properties.json deleted file mode 100644 index 904f12fd4a..0000000000 --- a/ci/properties/ruby.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Ruby", - "description": "Build and test a Ruby project with Rake.", - "iconName": "ruby", - "categories": ["Ruby"] -} diff --git a/ci/properties/tencent.properties.json b/ci/properties/tencent.properties.json deleted file mode 100644 index b3d9d3f456..0000000000 --- a/ci/properties/tencent.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Tencent Kubernetes Engine", - "description": "This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE).", - "iconName": "tencentcloud", - "categories": null -} diff --git a/ci/properties/terraform.properties.json b/ci/properties/terraform.properties.json deleted file mode 100644 index 34fa16e713..0000000000 --- a/ci/properties/terraform.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Terraform", - "description": "Set up Terraform CLI in your GitHub Actions workflow.", - "iconName": "terraform", - "categories": null -} diff --git a/ci/properties/wpf-dotnet-core.properties.json b/ci/properties/wpf-dotnet-core.properties.json deleted file mode 100644 index f43ea35052..0000000000 --- a/ci/properties/wpf-dotnet-core.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "WPF .NET Core", - "description": "Build, test and publish a Wpf application built on .NET Core.", - "iconName": "dotnetcore", - "categories": ["C#", "Visual Basic", "WPF", ".NET"] -} \ No newline at end of file diff --git a/ci/python-app.yml b/ci/python-app.yml deleted file mode 100644 index c7f5067453..0000000000 --- a/ci/python-app.yml +++ /dev/null @@ -1,36 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python application - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest diff --git a/ci/python-package.yml b/ci/python-package.yml deleted file mode 100644 index f1abc2ffce..0000000000 --- a/ci/python-package.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python package - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.5, 3.6, 3.7, 3.8] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest diff --git a/ci/python-publish.yml b/ci/python-publish.yml deleted file mode 100644 index 4e1ef42d2b..0000000000 --- a/ci/python-publish.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Upload Python Package - -on: - release: - types: [created] - -jobs: - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* diff --git a/ci/ruby.yml b/ci/ruby.yml deleted file mode 100644 index 76c166ecbe..0000000000 --- a/ci/ruby.yml +++ /dev/null @@ -1,33 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake -# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby - -name: Ruby - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - test: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Ruby - # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, - # change this to (see https://github.com/ruby/setup-ruby#versioning): - # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 - with: - ruby-version: 2.6 - - name: Install dependencies - run: bundle install - - name: Run tests - run: bundle exec rake diff --git a/ci/tencent.yml b/ci/tencent.yml deleted file mode 100644 index 2d4ad039aa..0000000000 --- a/ci/tencent.yml +++ /dev/null @@ -1,75 +0,0 @@ -# This workflow will build a docker container, publish and deploy it to Tencent Kubernetes Engine (TKE). -# -# To configure this workflow: -# -# 1. Ensure that your repository contains the necessary configuration for your Tencent Kubernetes Engine cluster, -# including deployment.yml, kustomization.yml, service.yml, etc. -# -# 2. Set up secrets in your workspace: -# - TENCENT_CLOUD_SECRET_ID with Tencent Cloud secret id -# - TENCENT_CLOUD_SECRET_KEY with Tencent Cloud secret key -# - TENCENT_CLOUD_ACCOUNT_ID with Tencent Cloud account id -# - TKE_REGISTRY_PASSWORD with TKE registry password -# -# 3. Change the values for the TKE_IMAGE_URL, TKE_REGION, TKE_CLUSTER_ID and DEPLOYMENT_NAME environment variables (below). - -name: Tencent Kubernetes Engine - -on: - release: - types: [created] - -# Environment variables available to all jobs and steps in this workflow -env: - TKE_IMAGE_URL: ccr.ccs.tencentyun.com/demo/mywebapp - TKE_REGION: ap-guangzhou - TKE_CLUSTER_ID: cls-mywebapp - DEPLOYMENT_NAME: tke-test - -jobs: - setup-build-publish-deploy: - name: Setup, Build, Publish, and Deploy - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - # Build - - name: Build Docker image - run: | - docker build -t ${TKE_IMAGE_URL}:${GITHUB_SHA} . - - - name: Login TKE Registry - run: | - docker login -u ${{ secrets.TENCENT_CLOUD_ACCOUNT_ID }} -p ${{ secrets.TKE_REGISTRY_PASSWORD }} ${TKE_IMAGE_URL} - - # Push the Docker image to TKE Registry - - name: Publish - run: | - docker push ${TKE_IMAGE_URL}:${GITHUB_SHA} - - - name: Set up Kustomize - run: | - curl -o kustomize --location https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 - chmod u+x ./kustomize - - - name: Set up ~/.kube/config for connecting TKE cluster - uses: TencentCloud/tke-cluster-credential-action@v1 - with: - secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} - secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} - tke_region: ${{ env.TKE_REGION }} - cluster_id: ${{ env.TKE_CLUSTER_ID }} - - - name: Switch to TKE context - run: | - kubectl config use-context ${TKE_CLUSTER_ID}-context-default - - # Deploy the Docker image to the TKE cluster - - name: Deploy - run: | - ./kustomize edit set image ${TKE_IMAGE_URL}:${GITHUB_SHA} - ./kustomize build . | kubectl apply -f - - kubectl rollout status deployment/${DEPLOYMENT_NAME} - kubectl get services -o wide \ No newline at end of file diff --git a/ci/terraform.yml b/ci/terraform.yml deleted file mode 100644 index 148f2e220f..0000000000 --- a/ci/terraform.yml +++ /dev/null @@ -1,90 +0,0 @@ -# This workflow installs the latest version of Terraform CLI and configures the Terraform CLI configuration file -# with an API token for Terraform Cloud (app.terraform.io). On pull request events, this workflow will run -# `terraform init`, `terraform fmt`, and `terraform plan` (speculative plan via Terraform Cloud). On push events -# to the master branch, `terraform apply` will be executed. -# -# Documentation for `hashicorp/setup-terraform` is located here: https://github.com/hashicorp/setup-terraform -# -# To use this workflow, you will need to complete the following setup steps. -# -# 1. Create a `main.tf` file in the root of this repository with the `remote` backend and one or more resources defined. -# Example `main.tf`: -# # The configuration for the `remote` backend. -# terraform { -# backend "remote" { -# # The name of your Terraform Cloud organization. -# organization = "example-organization" -# -# # The name of the Terraform Cloud workspace to store Terraform state files in. -# workspaces { -# name = "example-workspace" -# } -# } -# } -# -# # An example resource that does nothing. -# resource "null_resource" "example" { -# triggers = { -# value = "A example resource that does nothing!" -# } -# } -# -# -# 2. Generate a Terraform Cloud user API token and store it as a GitHub secret (e.g. TF_API_TOKEN) on this repository. -# Documentation: -# - https://www.terraform.io/docs/cloud/users-teams-organizations/api-tokens.html -# - https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets -# -# 3. Reference the GitHub secret in step using the `hashicorp/setup-terraform` GitHub Action. -# Example: -# - name: Setup Terraform -# uses: hashicorp/setup-terraform@v1 -# with: -# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - -name: 'Terraform' - -on: - push: - branches: - - master - pull_request: - -jobs: - terraform: - name: 'Terraform' - runs-on: ubuntu-latest - - # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest - defaults: - run: - shell: bash - - # Checkout the repository to the GitHub Actions runner - steps: - - name: Checkout - uses: actions/checkout@v2 - - # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token - - name: Setup Terraform - uses: hashicorp/setup-terraform@v1 - with: - cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - - # Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. - - name: Terraform Init - run: terraform init - - # Checks that all Terraform configuration files adhere to a canonical format - - name: Terraform Format - run: terraform fmt -check - - # Generates an execution plan for Terraform - - name: Terraform Plan - run: terraform plan - - # On push to master, build or change infrastructure according to Terraform configuration files - # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - - name: Terraform Apply - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - run: terraform apply -auto-approve diff --git a/ci/wpf-dotnet-core.yml b/ci/wpf-dotnet-core.yml deleted file mode 100644 index 80ec3e5f0f..0000000000 --- a/ci/wpf-dotnet-core.yml +++ /dev/null @@ -1,115 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow will build, test and package a WPF desktop application -# built on .NET Core. -# To learn how to migrate your existing WPF application to .NET Core, -# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework -# -# To configure this workflow: -# -# 1. Configure environment variables -# GitHub sets default environment variables for every workflow run. -# Replace the variables relative to your project in the "env" section below. -# -# 2. Signing -# Generate a signing certificate in the Windows Application -# Packaging Project or add an existing signing certificate to the project. -# Next, use PowerShell to encode the .pfx file using Base64 encoding -# by running the following Powershell script to generate the output string: -# -# $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte -# [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt' -# -# Open the output file, SigningCertificate_Encoded.txt, and copy the -# string inside. Then, add the string to the repo as a GitHub secret -# and name it "Base64_Encoded_Pfx." -# For more information on how to configure your signing certificate for -# this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing -# -# Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key". -# See "Build the Windows Application Packaging project" below to see how the secret is used. -# -# For more information on GitHub Actions, refer to https://github.com/features/actions -# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications, -# refer to https://github.com/microsoft/github-actions-for-desktop-apps - -name: WPF .NET Core - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - - strategy: - matrix: - configuration: [Debug, Release] - - runs-on: windows-latest # For a list of available runner types, refer to - # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on - - env: - Solution_Name: your-solution-name # Replace with your solution name, i.e. MyWpfApp.sln. - Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. - Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. - Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. - - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - # Install the .NET Core workload - - name: Install .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.101 - - # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - - name: Setup MSBuild.exe - uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16 - - # Execute all unit tests in the solution - - name: Execute unit tests - run: dotnet test - - # Restore the WPF application to populate the obj folder with RuntimeIdentifiers - - name: Restore the WPF application - run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration - env: - Configuration: ${{ matrix.configuration }} - - # Decode the base 64 encoded pfx and save the Signing_Certificate - - name: Decode the pfx - run: | - $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") - $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx - [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) - - # Create the app package by building and packaging the Windows Application Packaging project - - name: Create the app package - run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} - env: - Appx_Bundle: Always - Appx_Bundle_Platforms: x86|x64 - Appx_Package_Build_Mode: StoreUpload - Configuration: ${{ matrix.configuration }} - - # Remove the pfx - - name: Remove the pfx - run: Remove-Item -path $env:Wap_Project_Directory\$env:Signing_Certificate - - # Upload the MSIX package: https://github.com/marketplace/actions/upload-artifact - - name: Upload build artifacts - uses: actions/upload-artifact@v1 - with: - name: MSIX Package - path: ${{ env.Wap_Project_Directory }}\AppPackages diff --git a/icons/angular.svg b/icons/angular.svg deleted file mode 100644 index 466927452a..0000000000 --- a/icons/angular.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/aspdotnet.svg b/icons/aspdotnet.svg deleted file mode 100644 index 468a082816..0000000000 --- a/icons/aspdotnet.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/django.svg b/icons/django.svg deleted file mode 100644 index 68cda567bb..0000000000 --- a/icons/django.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/dotnet.svg b/icons/dotnet.svg deleted file mode 100644 index 9cb09d7da1..0000000000 --- a/icons/dotnet.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/elixir.svg b/icons/elixir.svg deleted file mode 100644 index bed439ead2..0000000000 --- a/icons/elixir.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/grunt.svg b/icons/grunt.svg deleted file mode 100644 index ce8e4a6cf1..0000000000 --- a/icons/grunt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/gulp.svg b/icons/gulp.svg deleted file mode 100644 index a99af85e85..0000000000 --- a/icons/gulp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/haskell.svg b/icons/haskell.svg deleted file mode 100644 index 02830e872f..0000000000 --- a/icons/haskell.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/html.svg b/icons/html.svg deleted file mode 100644 index b7c6bb99c2..0000000000 --- a/icons/html.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/python.svg b/icons/python.svg deleted file mode 100644 index 8e2a35ba47..0000000000 --- a/icons/python.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/ruby-gems.svg b/icons/ruby-gems.svg deleted file mode 100644 index 6728ef5c33..0000000000 --- a/icons/ruby-gems.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/ruby.svg b/icons/ruby.svg deleted file mode 100644 index 68b0c8b2f9..0000000000 --- a/icons/ruby.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/tencentcloud.svg b/icons/tencentcloud.svg deleted file mode 100644 index af729a46ce..0000000000 --- a/icons/tencentcloud.svg +++ /dev/null @@ -1,29 +0,0 @@ - - - - 矩形 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/terraform.svg b/icons/terraform.svg deleted file mode 100644 index 718fc0f4e5..0000000000 --- a/icons/terraform.svg +++ /dev/null @@ -1 +0,0 @@ -terraform-icon logo \ No newline at end of file diff --git a/icons/uwp.svg b/icons/uwp.svg deleted file mode 100644 index 644e2663f5..0000000000 --- a/icons/uwp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/webpack.svg b/icons/webpack.svg deleted file mode 100644 index 3e94424714..0000000000 --- a/icons/webpack.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/xamarin.svg b/icons/xamarin.svg deleted file mode 100644 index ca3c4b73bc..0000000000 --- a/icons/xamarin.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/xcode.svg b/icons/xcode.svg deleted file mode 100644 index a09ea449d9..0000000000 --- a/icons/xcode.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 07ab99db5c8c50f56bdbd063e5898cea3b9e5749 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 22 May 2020 15:44:59 +0000 Subject: [PATCH 002/185] Updating GHES workflows --- ci/ibm.yml | 74 ------------------------------- ci/properties/ibm.properties.json | 6 --- icons/ibm.svg | 61 ------------------------- 3 files changed, 141 deletions(-) delete mode 100644 ci/ibm.yml delete mode 100644 ci/properties/ibm.properties.json delete mode 100644 icons/ibm.svg diff --git a/ci/ibm.yml b/ci/ibm.yml deleted file mode 100644 index 8af050f364..0000000000 --- a/ci/ibm.yml +++ /dev/null @@ -1,74 +0,0 @@ -# This workflow will build a docker container, publish it to IBM Container Registry, and deploy it to IKS when a release is created -# -# To configure this workflow: -# -# 1. Ensure that your repository contains a Dockerfile -# 2. Setup secrets in your repository by going to settings: Create ICR_NAMESPACE and IBM_CLOUD_API_KEY -# 3. Change the values for the IBM_CLOUD_REGION, REGISTRY_HOSTNAME, IMAGE_NAME, IKS_CLUSTER, DEPLOYMENT_NAME, and PORT - -name: Build and Deploy to IKS - -on: - release: - types: [created] - -# Environment variables available to all jobs and steps in this workflow -env: - GITHUB_SHA: ${{ github.sha }} - IBM_CLOUD_API_KEY: ${{ secrets.IBM_CLOUD_API_KEY }} - IBM_CLOUD_REGION: us-south - ICR_NAMESPACE: ${{ secrets.ICR_NAMESPACE }} - REGISTRY_HOSTNAME: us.icr.io - IMAGE_NAME: iks-test - IKS_CLUSTER: example-iks-cluster-name-or-id - DEPLOYMENT_NAME: iks-test - PORT: 5001 - -jobs: - setup-build-publish-deploy: - name: Setup, Build, Publish, and Deploy - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - # Download and Install IBM Cloud CLI - - name: Install IBM Cloud CLI - run: | - curl -fsSL https://clis.cloud.ibm.com/install/linux | sh - ibmcloud --version - ibmcloud config --check-version=false - ibmcloud plugin install -f kubernetes-service - ibmcloud plugin install -f container-registry - - # Authenticate with IBM Cloud CLI - - name: Authenticate with IBM Cloud CLI - run: | - ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" -r "${IBM_CLOUD_REGION}" -g default - ibmcloud cr region-set "${IBM_CLOUD_REGION}" - ibmcloud cr login - - # Build the Docker image - - name: Build with Docker - run: | - docker build -t "$REGISTRY_HOSTNAME"/"$ICR_NAMESPACE"/"$IMAGE_NAME":"$GITHUB_SHA" \ - --build-arg GITHUB_SHA="$GITHUB_SHA" \ - --build-arg GITHUB_REF="$GITHUB_REF" . - - # Push the image to IBM Container Registry - - name: Push the image to ICR - run: | - docker push $REGISTRY_HOSTNAME/$ICR_NAMESPACE/$IMAGE_NAME:$GITHUB_SHA - - # Deploy the Docker image to the IKS cluster - - name: Deploy to IKS - run: | - ibmcloud ks cluster config --cluster $IKS_CLUSTER - kubectl config current-context - kubectl create deployment $DEPLOYMENT_NAME --image=$REGISTRY_HOSTNAME/$ICR_NAMESPACE/$IMAGE_NAME:$GITHUB_SHA --dry-run -o yaml > deployment.yaml - kubectl apply -f deployment.yaml - kubectl rollout status deployment/$DEPLOYMENT_NAME - kubectl create service loadbalancer $DEPLOYMENT_NAME --tcp=80:$PORT --dry-run -o yaml > service.yaml - kubectl apply -f service.yaml - kubectl get services -o wide diff --git a/ci/properties/ibm.properties.json b/ci/properties/ibm.properties.json deleted file mode 100644 index 44d899624a..0000000000 --- a/ci/properties/ibm.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Build and Deploy to IKS", - "description": "Build a docker container, publish it to IBM Container Registry, and deploy to IKS.", - "iconName": "ibm", - "categories": null -} \ No newline at end of file diff --git a/icons/ibm.svg b/icons/ibm.svg deleted file mode 100644 index 3732033cec..0000000000 --- a/icons/ibm.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Created by potrace 1.16, written by Peter Selinger 2001-2019 - - - - - - - - - - - - From 7f38c08e7aa28260834bfdb4507fcdab3d421c1c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 25 May 2020 19:49:26 +0000 Subject: [PATCH 003/185] Updating GHES workflows --- ci/rust.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/rust.yml b/ci/rust.yml index 6738b0b292..3c13d1be28 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ master ] +env: + CARGO_TERM_COLOR: always + jobs: build: From 874062869c2b90cd446fc80f018197b682c2c064 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 25 May 2020 20:13:54 +0000 Subject: [PATCH 004/185] Updating GHES workflows --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index e772a1cd78..673bd33177 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v2 From 85199a93cedfbd3cb44f696fccc4e6f69de91076 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 25 May 2020 20:17:18 +0000 Subject: [PATCH 005/185] Updating GHES workflows --- ci/laravel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/laravel.yml b/ci/laravel.yml index 7fc4665d5f..a895246337 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -16,7 +16,7 @@ jobs: - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" - name: Install Dependencies - run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - name: Generate key run: php artisan key:generate - name: Directory Permissions From 1ff7963a8f54913cf73258f43b51208de1bf2929 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 27 May 2020 14:59:35 +0000 Subject: [PATCH 006/185] Updating GHES workflows --- ci/php.yml | 27 --------------------------- ci/properties/php.properties.json | 6 ------ 2 files changed, 33 deletions(-) delete mode 100644 ci/php.yml delete mode 100644 ci/properties/php.properties.json diff --git a/ci/php.yml b/ci/php.yml deleted file mode 100644 index 989deb2164..0000000000 --- a/ci/php.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: PHP Composer - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" - # Docs: https://getcomposer.org/doc/articles/scripts.md - - # - name: Run test suite - # run: composer run-script test diff --git a/ci/properties/php.properties.json b/ci/properties/php.properties.json deleted file mode 100644 index 641e536f28..0000000000 --- a/ci/properties/php.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "PHP", - "description": "Build and test a PHP application using Composer", - "iconName": "php", - "categories": ["PHP", "Composer"] -} \ No newline at end of file From ddfbfeaade89d8f6d944852882dd059306cffd6c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 8 Jun 2020 15:35:29 +0000 Subject: [PATCH 007/185] Updating GHES workflows --- automation/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/stale.yml b/automation/stale.yml index 7bbc0505bf..34045177cb 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -2,7 +2,7 @@ name: Mark stale issues and pull requests on: schedule: - - cron: "0 0 * * *" + - cron: "30 1 * * *" jobs: stale: From a793bf3bd404486ae71b3dd1341fc2a152996cc8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 9 Jul 2020 18:07:41 +0000 Subject: [PATCH 008/185] Updating GHES workflows --- automation/manual.yml | 30 ++++++++++++++++++++ automation/properties/manual.properties.json | 6 ++++ 2 files changed, 36 insertions(+) create mode 100644 automation/manual.yml create mode 100644 automation/properties/manual.properties.json diff --git a/automation/manual.yml b/automation/manual.yml new file mode 100644 index 0000000000..4a7131e812 --- /dev/null +++ b/automation/manual.yml @@ -0,0 +1,30 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" \ No newline at end of file diff --git a/automation/properties/manual.properties.json b/automation/properties/manual.properties.json new file mode 100644 index 0000000000..f08cbc36c6 --- /dev/null +++ b/automation/properties/manual.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Manual workflow", + "description": "Simple workflow that is manually triggered.", + "iconName": "blank", + "categories": ["Automation"] +} From def70d726872b7b8bd156aebe9776a9fc3ff032e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 14 Jul 2020 18:11:40 +0000 Subject: [PATCH 009/185] Updating GHES workflows --- ci/android.yml | 4 ++-- ci/ant.yml | 4 ++-- ci/blank.yml | 6 +++--- ci/c-cpp.yml | 4 ++-- ci/clojure.yml | 4 ++-- ci/crystal.yml | 4 ++-- ci/dart.yml | 4 ++-- ci/docker-image.yml | 4 ++-- ci/docker-publish.yml | 8 ++++---- ci/dotnet-core.yml | 4 ++-- ci/erlang.yml | 4 ++-- ci/go.yml | 4 ++-- ci/gradle.yml | 4 ++-- ci/jekyll.yml | 4 ++-- ci/laravel.yml | 6 +++--- ci/maven.yml | 4 ++-- ci/node.js.yml | 4 ++-- ci/rust.yml | 4 ++-- ci/scala.yml | 4 ++-- ci/swift.yml | 4 ++-- 20 files changed, 44 insertions(+), 44 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 7ec0147524..c88c515ea9 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -2,9 +2,9 @@ name: Android CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/ant.yml b/ci/ant.yml index efebba5a07..28fe6d0529 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -5,9 +5,9 @@ name: Java CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/blank.yml b/ci/blank.yml index d6783e2188..72f1f168ba 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -3,12 +3,12 @@ name: CI # Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch +# events but only for the $default-branch branch on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index e3233268f7..88d1497621 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -2,9 +2,9 @@ name: C/C++ CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/clojure.yml b/ci/clojure.yml index 22bfe20398..098918a1b8 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -2,9 +2,9 @@ name: Clojure CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/crystal.yml b/ci/crystal.yml index ce9dbfcd3b..6552afa563 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -2,9 +2,9 @@ name: Crystal CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/dart.yml b/ci/dart.yml index 11e18c7beb..6e1b2e3d89 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -2,9 +2,9 @@ name: Dart CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/docker-image.yml b/ci/docker-image.yml index e57d42a7c9..78532a335a 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -2,9 +2,9 @@ name: Docker Image CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 9e80e76c88..76756dbf1e 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -2,9 +2,9 @@ name: Docker on: push: - # Publish `master` as Docker `latest` image. + # Publish `$default-branch` as Docker `latest` image. branches: - - master + - $default-branch # Publish `v1.2.3` tags as releases. tags: @@ -56,7 +56,7 @@ jobs: - name: Push image run: | IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME - + # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') @@ -67,7 +67,7 @@ jobs: [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') # Use Docker `latest` tag convention - [ "$VERSION" == "master" ] && VERSION=latest + [ "$VERSION" == "$default-branch" ] && VERSION=latest echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index f734ea7b55..03958b66af 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -2,9 +2,9 @@ name: .NET Core on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/erlang.yml b/ci/erlang.yml index fd28497ff7..25cb8939e7 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -2,9 +2,9 @@ name: Erlang CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: diff --git a/ci/go.yml b/ci/go.yml index d31e87f957..3fa934869a 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: diff --git a/ci/gradle.yml b/ci/gradle.yml index 58e1c59ce1..4550f5880d 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -5,9 +5,9 @@ name: Java CI with Gradle on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 64df081ef4..9449a6efae 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -2,9 +2,9 @@ name: Jekyll site CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/laravel.yml b/ci/laravel.yml index a895246337..b32ad881b8 100644 --- a/ci/laravel.yml +++ b/ci/laravel.yml @@ -2,15 +2,15 @@ name: Laravel on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: laravel-tests: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v2 - name: Copy .env diff --git a/ci/maven.yml b/ci/maven.yml index c8aeb3a277..a46556ab3b 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -5,9 +5,9 @@ name: Java CI with Maven on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/node.js.yml b/ci/node.js.yml index 673bd33177..ce0cdcfd8e 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/rust.yml b/ci/rust.yml index 3c13d1be28..6c82c610fe 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] env: CARGO_TERM_COLOR: always diff --git a/ci/scala.yml b/ci/scala.yml index f182d0c092..96bfc70de1 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -2,9 +2,9 @@ name: Scala CI on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: diff --git a/ci/swift.yml b/ci/swift.yml index 5dbdb4f34d..df062b53e5 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -2,9 +2,9 @@ name: Swift on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: From 934f35df005e652b9bfac0eeb6b3d3a2da8255a8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 20 Jul 2020 15:13:41 +0000 Subject: [PATCH 010/185] Updating GHES workflows --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b66af..9ee1a7d929 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build From 0287d66cf4531bc39a596ed66d130c7aa92234b7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 20 Jul 2020 15:14:33 +0000 Subject: [PATCH 011/185] Updating GHES workflows --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 9ee1a7d929..03958b66af 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 3.1.101 - name: Install dependencies run: dotnet restore - name: Build From 2e806ae2065ce37a2fe864d1eaee8c4dc539dbfc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 22 Jul 2020 13:44:30 +0000 Subject: [PATCH 012/185] Updating GHES workflows --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b66af..9ee1a7d929 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build From 3869d8c7da344a0864b99963b6189da8140e4945 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 21 Aug 2020 15:27:57 +0000 Subject: [PATCH 013/185] Updating GHES workflows --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 9ee1a7d929..03958b66af 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 3.1.101 - name: Install dependencies run: dotnet restore - name: Build From fc246debda74d872dff826f8d296af013ef064f5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 21 Aug 2020 18:57:48 +0000 Subject: [PATCH 014/185] Updating GHES workflows --- ci/dotnet-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b66af..9ee1a7d929 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build From 1612e273efdcab4824f21375e5751ace99bd7163 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 24 Aug 2020 16:57:10 +0000 Subject: [PATCH 015/185] Updating GHES workflows --- ci/ios.yml | 42 +++++++++++++++++++++++++++++++ ci/properties/ios.properties.json | 9 +++++++ icons/xcode.svg | 1 + 3 files changed, 52 insertions(+) create mode 100644 ci/ios.yml create mode 100644 ci/properties/ios.properties.json create mode 100644 icons/xcode.svg diff --git a/ci/ios.yml b/ci/ios.yml new file mode 100644 index 0000000000..64b14a30a9 --- /dev/null +++ b/ci/ios.yml @@ -0,0 +1,42 @@ +name: iOS starter workflow + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + name: Build and Test default scheme using any available iPhone simulator + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set Default Scheme + run: | + scheme_list=$(xcodebuild -list -json | tr -d "\n") + default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") + echo $default | cat >default + echo Using default scheme: $default + - name: Build + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + - name: Test + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json new file mode 100644 index 0000000000..0b3a9edd6d --- /dev/null +++ b/ci/properties/ios.properties.json @@ -0,0 +1,9 @@ +{ + "name": "iOS", + "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", + "iconName": "xcode", + "categories": [ + "iOS", + "Xcode" + ] +} diff --git a/icons/xcode.svg b/icons/xcode.svg new file mode 100644 index 0000000000..a09ea449d9 --- /dev/null +++ b/icons/xcode.svg @@ -0,0 +1 @@ + \ No newline at end of file From 904fe4006e43eb2673b41379c8ee5f79da48f36b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 24 Aug 2020 16:58:48 +0000 Subject: [PATCH 016/185] Updating GHES workflows --- ci/cmake.yml | 46 +++ ci/properties/cmake.properties.json | 6 + icons/cmake.svg | 493 ++++++++++++++++++++++++++++ 3 files changed, 545 insertions(+) create mode 100644 ci/cmake.yml create mode 100644 ci/properties/cmake.properties.json create mode 100644 icons/cmake.svg diff --git a/ci/cmake.yml b/ci/cmake.yml new file mode 100644 index 0000000000..dae54ec2a9 --- /dev/null +++ b/ci/cmake.yml @@ -0,0 +1,46 @@ +name: CMake + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + # Some projects don't allow in-source building, so create a separate build directory + # We'll use this as our working directory for all subsequent commands + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + # Use a bash shell so we can use the same syntax for environment variable + # access regardless of the host operating system + shell: bash + working-directory: ${{runner.workspace}}/build + # Note the current convention is to use the -S and -B options here to specify source + # and build directories, but this is only available with CMake 3.13 and higher. + # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute the build. You can specify a specific target with "--target " + run: cmake --build . --config $BUILD_TYPE + + - name: Test + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C $BUILD_TYPE diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json new file mode 100644 index 0000000000..ac001c3b78 --- /dev/null +++ b/ci/properties/cmake.properties.json @@ -0,0 +1,6 @@ +{ + "name": "CMake based projects", + "description": "Build and test a CMake based project.", + "iconName": "cmake", + "categories": ["C", "C++"] +} \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg new file mode 100644 index 0000000000..254fe0129b --- /dev/null +++ b/icons/cmake.svg @@ -0,0 +1,493 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 10105b6aa946726920f9bca8613827c722e8aafc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 25 Aug 2020 16:17:33 +0000 Subject: [PATCH 017/185] Updating GHES workflows --- ci/ada.yml | 24 +++ ci/properties/ada.properties.json | 6 + icons/ada.svg | 283 ++++++++++++++++++++++++++++++ 3 files changed, 313 insertions(+) create mode 100644 ci/ada.yml create mode 100644 ci/properties/ada.properties.json create mode 100644 icons/ada.svg diff --git a/ci/ada.yml b/ci/ada.yml new file mode 100644 index 0000000000..a27902a5ed --- /dev/null +++ b/ci/ada.yml @@ -0,0 +1,24 @@ +name: Ada (GNAT) + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up GNAT toolchain + run: > + sudo apt-get update && + sudo apt-get install gnat gprbuild + + - name: Build + run: gprbuild -j0 -p diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json new file mode 100644 index 0000000000..71021d003c --- /dev/null +++ b/ci/properties/ada.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Ada", + "description": "Build Ada project with GPRbuild.", + "iconName": "ada", + "categories": ["Ada"] +} diff --git a/icons/ada.svg b/icons/ada.svg new file mode 100644 index 0000000000..6a0d58fa62 --- /dev/null +++ b/icons/ada.svg @@ -0,0 +1,283 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 5e628d60902ffea5f37b474d5342dff1c75d9ca3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 26 Aug 2020 22:06:09 +0000 Subject: [PATCH 018/185] Updating GHES workflows --- ci/blank.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ci/blank.yml b/ci/blank.yml index 72f1f168ba..f7816e9ade 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -19,15 +19,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 9d5f3ec5406a63a8a02133775a505c4e3141c868 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 1 Sep 2020 16:43:53 +0000 Subject: [PATCH 019/185] Updating GHES workflows --- ci/docker-publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 76756dbf1e..fc5439b517 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,12 +50,13 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin + - name: Log into GitHub Container Registry + # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` + run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin - - name: Push image + - name: Push image to GitHub Container Registry run: | - IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME + IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') From a618a4364d86f8a1f7a0eab00c1a7ff092349a7c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 3 Sep 2020 23:25:00 +0000 Subject: [PATCH 020/185] Updating GHES workflows --- ci/ada.yml | 24 -- ci/blank.yml | 20 +- ci/cmake.yml | 46 --- ci/docker-publish.yml | 9 +- ci/dotnet-core.yml | 2 +- ci/ios.yml | 42 --- ci/properties/ada.properties.json | 6 - ci/properties/cmake.properties.json | 6 - ci/properties/ios.properties.json | 9 - icons/ada.svg | 283 ---------------- icons/cmake.svg | 493 ---------------------------- icons/xcode.svg | 1 - 12 files changed, 15 insertions(+), 926 deletions(-) delete mode 100644 ci/ada.yml delete mode 100644 ci/cmake.yml delete mode 100644 ci/ios.yml delete mode 100644 ci/properties/ada.properties.json delete mode 100644 ci/properties/cmake.properties.json delete mode 100644 ci/properties/ios.properties.json delete mode 100644 icons/ada.svg delete mode 100644 icons/cmake.svg delete mode 100644 icons/xcode.svg diff --git a/ci/ada.yml b/ci/ada.yml deleted file mode 100644 index a27902a5ed..0000000000 --- a/ci/ada.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Ada (GNAT) - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up GNAT toolchain - run: > - sudo apt-get update && - sudo apt-get install gnat gprbuild - - - name: Build - run: gprbuild -j0 -p diff --git a/ci/blank.yml b/ci/blank.yml index f7816e9ade..72f1f168ba 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -19,15 +19,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/ci/cmake.yml b/ci/cmake.yml deleted file mode 100644 index dae54ec2a9..0000000000 --- a/ci/cmake.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: CMake - -on: [push] - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Create Build Environment - # Some projects don't allow in-source building, so create a separate build directory - # We'll use this as our working directory for all subsequent commands - run: cmake -E make_directory ${{runner.workspace}}/build - - - name: Configure CMake - # Use a bash shell so we can use the same syntax for environment variable - # access regardless of the host operating system - shell: bash - working-directory: ${{runner.workspace}}/build - # Note the current convention is to use the -S and -B options here to specify source - # and build directories, but this is only available with CMake 3.13 and higher. - # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - - - name: Build - working-directory: ${{runner.workspace}}/build - shell: bash - # Execute the build. You can specify a specific target with "--target " - run: cmake --build . --config $BUILD_TYPE - - - name: Test - working-directory: ${{runner.workspace}}/build - shell: bash - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest -C $BUILD_TYPE diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index fc5439b517..76756dbf1e 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,13 +50,12 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into GitHub Container Registry - # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` - run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin + - name: Log into registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - - name: Push image to GitHub Container Registry + - name: Push image run: | - IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME + IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 9ee1a7d929..03958b66af 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 3.1.101 - name: Install dependencies run: dotnet restore - name: Build diff --git a/ci/ios.yml b/ci/ios.yml deleted file mode 100644 index 64b14a30a9..0000000000 --- a/ci/ios.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: iOS starter workflow - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - name: Build and Test default scheme using any available iPhone simulator - runs-on: macos-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Set Default Scheme - run: | - scheme_list=$(xcodebuild -list -json | tr -d "\n") - default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") - echo $default | cat >default - echo Using default scheme: $default - - name: Build - env: - scheme: ${{ 'default' }} - platform: ${{ 'iOS Simulator' }} - run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` - if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" - - name: Test - env: - scheme: ${{ 'default' }} - platform: ${{ 'iOS Simulator' }} - run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` - if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json deleted file mode 100644 index 71021d003c..0000000000 --- a/ci/properties/ada.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Ada", - "description": "Build Ada project with GPRbuild.", - "iconName": "ada", - "categories": ["Ada"] -} diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json deleted file mode 100644 index ac001c3b78..0000000000 --- a/ci/properties/cmake.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "CMake based projects", - "description": "Build and test a CMake based project.", - "iconName": "cmake", - "categories": ["C", "C++"] -} \ No newline at end of file diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json deleted file mode 100644 index 0b3a9edd6d..0000000000 --- a/ci/properties/ios.properties.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "iOS", - "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", - "iconName": "xcode", - "categories": [ - "iOS", - "Xcode" - ] -} diff --git a/icons/ada.svg b/icons/ada.svg deleted file mode 100644 index 6a0d58fa62..0000000000 --- a/icons/ada.svg +++ /dev/null @@ -1,283 +0,0 @@ - -image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg deleted file mode 100644 index 254fe0129b..0000000000 --- a/icons/cmake.svg +++ /dev/null @@ -1,493 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/xcode.svg b/icons/xcode.svg deleted file mode 100644 index a09ea449d9..0000000000 --- a/icons/xcode.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From e63b3cb8d3e4b52f593a56c7a076f71966442205 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 10 Sep 2020 00:21:31 +0000 Subject: [PATCH 021/185] Updating GHES workflows --- ci/ada.yml | 24 ++ ci/blank.yml | 20 +- ci/cmake.yml | 46 +++ ci/docker-publish.yml | 9 +- ci/dotnet-core.yml | 2 +- ci/ios.yml | 42 +++ ci/npm-publish.yml | 2 +- ci/properties/ada.properties.json | 6 + ci/properties/cmake.properties.json | 6 + ci/properties/ios.properties.json | 9 + icons/ada.svg | 283 ++++++++++++++++ icons/cmake.svg | 493 ++++++++++++++++++++++++++++ icons/xcode.svg | 1 + 13 files changed, 927 insertions(+), 16 deletions(-) create mode 100644 ci/ada.yml create mode 100644 ci/cmake.yml create mode 100644 ci/ios.yml create mode 100644 ci/properties/ada.properties.json create mode 100644 ci/properties/cmake.properties.json create mode 100644 ci/properties/ios.properties.json create mode 100644 icons/ada.svg create mode 100644 icons/cmake.svg create mode 100644 icons/xcode.svg diff --git a/ci/ada.yml b/ci/ada.yml new file mode 100644 index 0000000000..a27902a5ed --- /dev/null +++ b/ci/ada.yml @@ -0,0 +1,24 @@ +name: Ada (GNAT) + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up GNAT toolchain + run: > + sudo apt-get update && + sudo apt-get install gnat gprbuild + + - name: Build + run: gprbuild -j0 -p diff --git a/ci/blank.yml b/ci/blank.yml index 72f1f168ba..f7816e9ade 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -19,15 +19,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/ci/cmake.yml b/ci/cmake.yml new file mode 100644 index 0000000000..dae54ec2a9 --- /dev/null +++ b/ci/cmake.yml @@ -0,0 +1,46 @@ +name: CMake + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + # Some projects don't allow in-source building, so create a separate build directory + # We'll use this as our working directory for all subsequent commands + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + # Use a bash shell so we can use the same syntax for environment variable + # access regardless of the host operating system + shell: bash + working-directory: ${{runner.workspace}}/build + # Note the current convention is to use the -S and -B options here to specify source + # and build directories, but this is only available with CMake 3.13 and higher. + # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute the build. You can specify a specific target with "--target " + run: cmake --build . --config $BUILD_TYPE + + - name: Test + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C $BUILD_TYPE diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 76756dbf1e..fc5439b517 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,12 +50,13 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin + - name: Log into GitHub Container Registry + # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` + run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin - - name: Push image + - name: Push image to GitHub Container Registry run: | - IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME + IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b66af..9ee1a7d929 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build diff --git a/ci/ios.yml b/ci/ios.yml new file mode 100644 index 0000000000..64b14a30a9 --- /dev/null +++ b/ci/ios.yml @@ -0,0 +1,42 @@ +name: iOS starter workflow + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + name: Build and Test default scheme using any available iPhone simulator + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set Default Scheme + run: | + scheme_list=$(xcodebuild -list -json | tr -d "\n") + default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") + echo $default | cat >default + echo Using default scheme: $default + - name: Build + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + - name: Test + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 861e37239f..b460edca9a 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - registry-url: https://npm.pkg.github.com/ + registry-url: $registry-url(npm) - run: npm ci - run: npm publish env: diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json new file mode 100644 index 0000000000..71021d003c --- /dev/null +++ b/ci/properties/ada.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Ada", + "description": "Build Ada project with GPRbuild.", + "iconName": "ada", + "categories": ["Ada"] +} diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json new file mode 100644 index 0000000000..ac001c3b78 --- /dev/null +++ b/ci/properties/cmake.properties.json @@ -0,0 +1,6 @@ +{ + "name": "CMake based projects", + "description": "Build and test a CMake based project.", + "iconName": "cmake", + "categories": ["C", "C++"] +} \ No newline at end of file diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json new file mode 100644 index 0000000000..0b3a9edd6d --- /dev/null +++ b/ci/properties/ios.properties.json @@ -0,0 +1,9 @@ +{ + "name": "iOS", + "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", + "iconName": "xcode", + "categories": [ + "iOS", + "Xcode" + ] +} diff --git a/icons/ada.svg b/icons/ada.svg new file mode 100644 index 0000000000..6a0d58fa62 --- /dev/null +++ b/icons/ada.svg @@ -0,0 +1,283 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg new file mode 100644 index 0000000000..254fe0129b --- /dev/null +++ b/icons/cmake.svg @@ -0,0 +1,493 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/xcode.svg b/icons/xcode.svg new file mode 100644 index 0000000000..a09ea449d9 --- /dev/null +++ b/icons/xcode.svg @@ -0,0 +1 @@ + \ No newline at end of file From 2de65d448ad9d3bbb9be3f95015df9fc9faaf54c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 28 Sep 2020 22:04:42 +0000 Subject: [PATCH 022/185] Updating GHES workflows --- ci/ada.yml | 24 -- ci/blank.yml | 20 +- ci/cmake.yml | 46 --- ci/docker-publish.yml | 9 +- ci/dotnet-core.yml | 2 +- ci/ios.yml | 42 --- ci/npm-publish.yml | 2 +- ci/properties/ada.properties.json | 6 - ci/properties/cmake.properties.json | 6 - ci/properties/ios.properties.json | 9 - icons/ada.svg | 283 ---------------- icons/cmake.svg | 493 ---------------------------- icons/xcode.svg | 1 - 13 files changed, 16 insertions(+), 927 deletions(-) delete mode 100644 ci/ada.yml delete mode 100644 ci/cmake.yml delete mode 100644 ci/ios.yml delete mode 100644 ci/properties/ada.properties.json delete mode 100644 ci/properties/cmake.properties.json delete mode 100644 ci/properties/ios.properties.json delete mode 100644 icons/ada.svg delete mode 100644 icons/cmake.svg delete mode 100644 icons/xcode.svg diff --git a/ci/ada.yml b/ci/ada.yml deleted file mode 100644 index a27902a5ed..0000000000 --- a/ci/ada.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Ada (GNAT) - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up GNAT toolchain - run: > - sudo apt-get update && - sudo apt-get install gnat gprbuild - - - name: Build - run: gprbuild -j0 -p diff --git a/ci/blank.yml b/ci/blank.yml index f7816e9ade..72f1f168ba 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -19,15 +19,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/ci/cmake.yml b/ci/cmake.yml deleted file mode 100644 index dae54ec2a9..0000000000 --- a/ci/cmake.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: CMake - -on: [push] - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Create Build Environment - # Some projects don't allow in-source building, so create a separate build directory - # We'll use this as our working directory for all subsequent commands - run: cmake -E make_directory ${{runner.workspace}}/build - - - name: Configure CMake - # Use a bash shell so we can use the same syntax for environment variable - # access regardless of the host operating system - shell: bash - working-directory: ${{runner.workspace}}/build - # Note the current convention is to use the -S and -B options here to specify source - # and build directories, but this is only available with CMake 3.13 and higher. - # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - - - name: Build - working-directory: ${{runner.workspace}}/build - shell: bash - # Execute the build. You can specify a specific target with "--target " - run: cmake --build . --config $BUILD_TYPE - - - name: Test - working-directory: ${{runner.workspace}}/build - shell: bash - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest -C $BUILD_TYPE diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index fc5439b517..76756dbf1e 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,13 +50,12 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into GitHub Container Registry - # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` - run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin + - name: Log into registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - - name: Push image to GitHub Container Registry + - name: Push image run: | - IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME + IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 9ee1a7d929..03958b66af 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 3.1.101 - name: Install dependencies run: dotnet restore - name: Build diff --git a/ci/ios.yml b/ci/ios.yml deleted file mode 100644 index 64b14a30a9..0000000000 --- a/ci/ios.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: iOS starter workflow - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - name: Build and Test default scheme using any available iPhone simulator - runs-on: macos-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Set Default Scheme - run: | - scheme_list=$(xcodebuild -list -json | tr -d "\n") - default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") - echo $default | cat >default - echo Using default scheme: $default - - name: Build - env: - scheme: ${{ 'default' }} - platform: ${{ 'iOS Simulator' }} - run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` - if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" - - name: Test - env: - scheme: ${{ 'default' }} - platform: ${{ 'iOS Simulator' }} - run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` - if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index b460edca9a..861e37239f 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - registry-url: $registry-url(npm) + registry-url: https://npm.pkg.github.com/ - run: npm ci - run: npm publish env: diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json deleted file mode 100644 index 71021d003c..0000000000 --- a/ci/properties/ada.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Ada", - "description": "Build Ada project with GPRbuild.", - "iconName": "ada", - "categories": ["Ada"] -} diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json deleted file mode 100644 index ac001c3b78..0000000000 --- a/ci/properties/cmake.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "CMake based projects", - "description": "Build and test a CMake based project.", - "iconName": "cmake", - "categories": ["C", "C++"] -} \ No newline at end of file diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json deleted file mode 100644 index 0b3a9edd6d..0000000000 --- a/ci/properties/ios.properties.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "iOS", - "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", - "iconName": "xcode", - "categories": [ - "iOS", - "Xcode" - ] -} diff --git a/icons/ada.svg b/icons/ada.svg deleted file mode 100644 index 6a0d58fa62..0000000000 --- a/icons/ada.svg +++ /dev/null @@ -1,283 +0,0 @@ - -image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg deleted file mode 100644 index 254fe0129b..0000000000 --- a/icons/cmake.svg +++ /dev/null @@ -1,493 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/xcode.svg b/icons/xcode.svg deleted file mode 100644 index a09ea449d9..0000000000 --- a/icons/xcode.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From d30f415002f9d7c229133bc0ee591684c838fde7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 14 Oct 2020 15:02:53 +0000 Subject: [PATCH 023/185] Updating GHES workflows --- ci/ada.yml | 24 ++ ci/blank.yml | 20 +- ci/cmake.yml | 46 +++ ci/docker-publish.yml | 9 +- ci/dotnet-core.yml | 2 +- ci/ios.yml | 42 +++ ci/npm-publish.yml | 2 +- ci/properties/ada.properties.json | 6 + ci/properties/cmake.properties.json | 6 + ci/properties/ios.properties.json | 9 + icons/ada.svg | 283 ++++++++++++++++ icons/cmake.svg | 493 ++++++++++++++++++++++++++++ icons/xcode.svg | 1 + 13 files changed, 927 insertions(+), 16 deletions(-) create mode 100644 ci/ada.yml create mode 100644 ci/cmake.yml create mode 100644 ci/ios.yml create mode 100644 ci/properties/ada.properties.json create mode 100644 ci/properties/cmake.properties.json create mode 100644 ci/properties/ios.properties.json create mode 100644 icons/ada.svg create mode 100644 icons/cmake.svg create mode 100644 icons/xcode.svg diff --git a/ci/ada.yml b/ci/ada.yml new file mode 100644 index 0000000000..a27902a5ed --- /dev/null +++ b/ci/ada.yml @@ -0,0 +1,24 @@ +name: Ada (GNAT) + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up GNAT toolchain + run: > + sudo apt-get update && + sudo apt-get install gnat gprbuild + + - name: Build + run: gprbuild -j0 -p diff --git a/ci/blank.yml b/ci/blank.yml index 72f1f168ba..f7816e9ade 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -19,15 +19,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/ci/cmake.yml b/ci/cmake.yml new file mode 100644 index 0000000000..dae54ec2a9 --- /dev/null +++ b/ci/cmake.yml @@ -0,0 +1,46 @@ +name: CMake + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + # Some projects don't allow in-source building, so create a separate build directory + # We'll use this as our working directory for all subsequent commands + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + # Use a bash shell so we can use the same syntax for environment variable + # access regardless of the host operating system + shell: bash + working-directory: ${{runner.workspace}}/build + # Note the current convention is to use the -S and -B options here to specify source + # and build directories, but this is only available with CMake 3.13 and higher. + # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute the build. You can specify a specific target with "--target " + run: cmake --build . --config $BUILD_TYPE + + - name: Test + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C $BUILD_TYPE diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 76756dbf1e..fc5439b517 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,12 +50,13 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin + - name: Log into GitHub Container Registry + # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` + run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin - - name: Push image + - name: Push image to GitHub Container Registry run: | - IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME + IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b66af..9ee1a7d929 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build diff --git a/ci/ios.yml b/ci/ios.yml new file mode 100644 index 0000000000..64b14a30a9 --- /dev/null +++ b/ci/ios.yml @@ -0,0 +1,42 @@ +name: iOS starter workflow + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + name: Build and Test default scheme using any available iPhone simulator + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set Default Scheme + run: | + scheme_list=$(xcodebuild -list -json | tr -d "\n") + default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") + echo $default | cat >default + echo Using default scheme: $default + - name: Build + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + - name: Test + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 861e37239f..b460edca9a 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - registry-url: https://npm.pkg.github.com/ + registry-url: $registry-url(npm) - run: npm ci - run: npm publish env: diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json new file mode 100644 index 0000000000..71021d003c --- /dev/null +++ b/ci/properties/ada.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Ada", + "description": "Build Ada project with GPRbuild.", + "iconName": "ada", + "categories": ["Ada"] +} diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json new file mode 100644 index 0000000000..ac001c3b78 --- /dev/null +++ b/ci/properties/cmake.properties.json @@ -0,0 +1,6 @@ +{ + "name": "CMake based projects", + "description": "Build and test a CMake based project.", + "iconName": "cmake", + "categories": ["C", "C++"] +} \ No newline at end of file diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json new file mode 100644 index 0000000000..0b3a9edd6d --- /dev/null +++ b/ci/properties/ios.properties.json @@ -0,0 +1,9 @@ +{ + "name": "iOS", + "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", + "iconName": "xcode", + "categories": [ + "iOS", + "Xcode" + ] +} diff --git a/icons/ada.svg b/icons/ada.svg new file mode 100644 index 0000000000..6a0d58fa62 --- /dev/null +++ b/icons/ada.svg @@ -0,0 +1,283 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg new file mode 100644 index 0000000000..254fe0129b --- /dev/null +++ b/icons/cmake.svg @@ -0,0 +1,493 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/xcode.svg b/icons/xcode.svg new file mode 100644 index 0000000000..a09ea449d9 --- /dev/null +++ b/icons/xcode.svg @@ -0,0 +1 @@ + \ No newline at end of file From 2d913365dc7710027734b6bb9531652a90926274 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 21 Oct 2020 20:25:45 +0000 Subject: [PATCH 024/185] Updating GHES workflows --- ci/go.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/go.yml b/ci/go.yml index 3fa934869a..55316635d2 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -17,7 +17,6 @@ jobs: uses: actions/setup-go@v2 with: go-version: ^1.13 - id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 From cb8bb12037ec85c844adbd7f5ad08c3b21ffa781 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 21 Oct 2020 20:29:07 +0000 Subject: [PATCH 025/185] Updating GHES workflows --- ci/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index dae54ec2a9..d5217692c3 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -11,7 +11,7 @@ jobs: # The CMake configure and build commands are platform agnostic and should work equally # well on Windows or Mac. You can convert this to a matrix build if you need # cross-platform coverage. - # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix runs-on: ubuntu-latest steps: From 9a682491ac31ca9157575af3e0965bb7603e9016 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 6 Nov 2020 18:26:42 +0000 Subject: [PATCH 026/185] Updating GHES workflows --- ci/docker-publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index fc5439b517..76756dbf1e 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,13 +50,12 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into GitHub Container Registry - # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` - run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin + - name: Log into registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - - name: Push image to GitHub Container Registry + - name: Push image run: | - IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME + IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') From 7fd11cddc6660c712388f42d324b235e8486da77 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 9 Nov 2020 20:32:31 +0000 Subject: [PATCH 027/185] Updating GHES workflows --- ci/dart.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/ci/dart.yml b/ci/dart.yml index 6e1b2e3d89..138921f500 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,4 +1,4 @@ -name: Dart CI +name: Dart on: push: @@ -8,15 +8,34 @@ on: jobs: build: - runs-on: ubuntu-latest + # Note that this workflow uses the latest stable version of the Dart SDK. + # Docker images for other release channels - like dev and beta - are also + # available. See https://hub.docker.com/r/google/dart/ for the available + # images. container: image: google/dart:latest steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: pub get - - name: Run tests - run: pub run test + - uses: actions/checkout@v2 + + - name: Print Dart SDK version + run: dart --version + + - name: Install dependencies + run: dart pub get + + # Uncomment this step to verify the use of 'dart format' on each commit. + # - name: Verify formatting + # run: dart format --output=none --set-exit-if-changed . + + # Consider passing '--fatal-infos' for slightly stricter analysis. + - name: Analyze project source + run: dart analyze + + # Your project will need to have tests in test/ and a dependency on + # package:test for this step to succeed. Note that Flutter projects will + # want to change this to 'flutter test'. + - name: Run tests + run: dart test From ebc9aa330acfb316193ff49c14ccaad6f7816b68 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 19 Nov 2020 22:27:39 +0000 Subject: [PATCH 028/185] Updating GHES workflows --- ci/blank.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/blank.yml b/ci/blank.yml index f7816e9ade..32142871a4 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -2,14 +2,17 @@ name: CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the $default-branch branch +# Controls when the action will run. on: + # Triggers the workflow on push or pull request events but only for the $default-branch branch push: branches: [ $default-branch ] pull_request: branches: [ $default-branch ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" From c89663c3cfd96f528f79fbaaaafd06b40a4ad1cb Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 24 Nov 2020 21:22:16 +0000 Subject: [PATCH 029/185] Updating GHES workflows --- ci/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/go.yml b/ci/go.yml index 55316635d2..16bff707ed 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -30,7 +30,7 @@ jobs: fi - name: Build - run: go build -v . + run: go build -v ./... - name: Test - run: go test -v . + run: go test -v ./... From efc30081fa571c2a3306322cac2d40b498b67b0b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 24 Nov 2020 21:43:18 +0000 Subject: [PATCH 030/185] Updating GHES workflows --- automation/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/stale.yml b/automation/stale.yml index 34045177cb..b671fc094c 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v1 + - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue message' From 263c7fa53ebe5467ba6155ff1ef335d8fde48f79 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Nov 2020 18:16:14 +0000 Subject: [PATCH 031/185] Updating GHES workflows --- automation/stale.yml | 2 +- ci/ada.yml | 24 -- ci/blank.yml | 27 +- ci/cmake.yml | 46 --- ci/dart.yml | 33 +- ci/dotnet-core.yml | 2 +- ci/go.yml | 5 +- ci/ios.yml | 42 --- ci/npm-publish.yml | 4 +- ci/properties/ada.properties.json | 6 - ci/properties/cmake.properties.json | 6 - ci/properties/ios.properties.json | 9 - icons/ada.svg | 283 ---------------- icons/cmake.svg | 493 ---------------------------- icons/xcode.svg | 1 - 15 files changed, 26 insertions(+), 957 deletions(-) delete mode 100644 ci/ada.yml delete mode 100644 ci/cmake.yml delete mode 100644 ci/ios.yml delete mode 100644 ci/properties/ada.properties.json delete mode 100644 ci/properties/cmake.properties.json delete mode 100644 ci/properties/ios.properties.json delete mode 100644 icons/ada.svg delete mode 100644 icons/cmake.svg delete mode 100644 icons/xcode.svg diff --git a/automation/stale.yml b/automation/stale.yml index b671fc094c..34045177cb 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue message' diff --git a/ci/ada.yml b/ci/ada.yml deleted file mode 100644 index a27902a5ed..0000000000 --- a/ci/ada.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Ada (GNAT) - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up GNAT toolchain - run: > - sudo apt-get update && - sudo apt-get install gnat gprbuild - - - name: Build - run: gprbuild -j0 -p diff --git a/ci/blank.yml b/ci/blank.yml index 32142871a4..72f1f168ba 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -2,17 +2,14 @@ name: CI -# Controls when the action will run. +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the $default-branch branch on: - # Triggers the workflow on push or pull request events but only for the $default-branch branch push: branches: [ $default-branch ] pull_request: branches: [ $default-branch ] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -22,15 +19,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/ci/cmake.yml b/ci/cmake.yml deleted file mode 100644 index d5217692c3..0000000000 --- a/ci/cmake.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: CMake - -on: [push] - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Create Build Environment - # Some projects don't allow in-source building, so create a separate build directory - # We'll use this as our working directory for all subsequent commands - run: cmake -E make_directory ${{runner.workspace}}/build - - - name: Configure CMake - # Use a bash shell so we can use the same syntax for environment variable - # access regardless of the host operating system - shell: bash - working-directory: ${{runner.workspace}}/build - # Note the current convention is to use the -S and -B options here to specify source - # and build directories, but this is only available with CMake 3.13 and higher. - # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - - - name: Build - working-directory: ${{runner.workspace}}/build - shell: bash - # Execute the build. You can specify a specific target with "--target " - run: cmake --build . --config $BUILD_TYPE - - - name: Test - working-directory: ${{runner.workspace}}/build - shell: bash - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest -C $BUILD_TYPE diff --git a/ci/dart.yml b/ci/dart.yml index 138921f500..6e1b2e3d89 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,4 +1,4 @@ -name: Dart +name: Dart CI on: push: @@ -8,34 +8,15 @@ on: jobs: build: + runs-on: ubuntu-latest - # Note that this workflow uses the latest stable version of the Dart SDK. - # Docker images for other release channels - like dev and beta - are also - # available. See https://hub.docker.com/r/google/dart/ for the available - # images. container: image: google/dart:latest steps: - - uses: actions/checkout@v2 - - - name: Print Dart SDK version - run: dart --version - - - name: Install dependencies - run: dart pub get - - # Uncomment this step to verify the use of 'dart format' on each commit. - # - name: Verify formatting - # run: dart format --output=none --set-exit-if-changed . - - # Consider passing '--fatal-infos' for slightly stricter analysis. - - name: Analyze project source - run: dart analyze - - # Your project will need to have tests in test/ and a dependency on - # package:test for this step to succeed. Note that Flutter projects will - # want to change this to 'flutter test'. - - name: Run tests - run: dart test + - uses: actions/checkout@v2 + - name: Install dependencies + run: pub get + - name: Run tests + run: pub run test diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 9ee1a7d929..03958b66af 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 3.1.101 - name: Install dependencies run: dotnet restore - name: Build diff --git a/ci/go.yml b/ci/go.yml index 16bff707ed..3fa934869a 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -17,6 +17,7 @@ jobs: uses: actions/setup-go@v2 with: go-version: ^1.13 + id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -30,7 +31,7 @@ jobs: fi - name: Build - run: go build -v ./... + run: go build -v . - name: Test - run: go test -v ./... + run: go test -v . diff --git a/ci/ios.yml b/ci/ios.yml deleted file mode 100644 index 64b14a30a9..0000000000 --- a/ci/ios.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: iOS starter workflow - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - name: Build and Test default scheme using any available iPhone simulator - runs-on: macos-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Set Default Scheme - run: | - scheme_list=$(xcodebuild -list -json | tr -d "\n") - default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") - echo $default | cat >default - echo Using default scheme: $default - - name: Build - env: - scheme: ${{ 'default' }} - platform: ${{ 'iOS Simulator' }} - run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` - if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" - - name: Test - env: - scheme: ${{ 'default' }} - platform: ${{ 'iOS Simulator' }} - run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` - if [ $scheme = default ]; then scheme=$(cat default); fi - if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi - file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index b460edca9a..aa47c4e2db 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -30,7 +30,7 @@ jobs: - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} publish-gpr: needs: build @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - registry-url: $registry-url(npm) + registry-url: https://npm.pkg.github.com/ - run: npm ci - run: npm publish env: diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json deleted file mode 100644 index 71021d003c..0000000000 --- a/ci/properties/ada.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Ada", - "description": "Build Ada project with GPRbuild.", - "iconName": "ada", - "categories": ["Ada"] -} diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json deleted file mode 100644 index ac001c3b78..0000000000 --- a/ci/properties/cmake.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "CMake based projects", - "description": "Build and test a CMake based project.", - "iconName": "cmake", - "categories": ["C", "C++"] -} \ No newline at end of file diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json deleted file mode 100644 index 0b3a9edd6d..0000000000 --- a/ci/properties/ios.properties.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "iOS", - "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", - "iconName": "xcode", - "categories": [ - "iOS", - "Xcode" - ] -} diff --git a/icons/ada.svg b/icons/ada.svg deleted file mode 100644 index 6a0d58fa62..0000000000 --- a/icons/ada.svg +++ /dev/null @@ -1,283 +0,0 @@ - -image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg deleted file mode 100644 index 254fe0129b..0000000000 --- a/icons/cmake.svg +++ /dev/null @@ -1,493 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/xcode.svg b/icons/xcode.svg deleted file mode 100644 index a09ea449d9..0000000000 --- a/icons/xcode.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 3860b7d8603b1cdfebfd061fef1092d3c50d823d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Nov 2020 21:02:59 +0000 Subject: [PATCH 032/185] Updating GHES workflows --- ci/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/maven.yml b/ci/maven.yml index a46556ab3b..367b842ba8 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -21,4 +21,4 @@ jobs: with: java-version: 1.8 - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn --batch-mode --update-snapshots verify From 0b4494c105914739d2f4bfc342fb6df5783565a4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 30 Nov 2020 17:02:58 +0000 Subject: [PATCH 033/185] Updating GHES workflows --- automation/stale.yml | 2 +- ci/ada.yml | 24 ++ ci/blank.yml | 27 +- ci/cmake.yml | 46 +++ ci/dart.yml | 33 +- ci/dotnet-core.yml | 2 +- ci/go.yml | 5 +- ci/ios.yml | 42 +++ ci/maven.yml | 2 +- ci/npm-publish.yml | 4 +- ci/properties/ada.properties.json | 6 + ci/properties/cmake.properties.json | 6 + ci/properties/ios.properties.json | 9 + icons/ada.svg | 283 ++++++++++++++++ icons/cmake.svg | 493 ++++++++++++++++++++++++++++ icons/xcode.svg | 1 + 16 files changed, 958 insertions(+), 27 deletions(-) create mode 100644 ci/ada.yml create mode 100644 ci/cmake.yml create mode 100644 ci/ios.yml create mode 100644 ci/properties/ada.properties.json create mode 100644 ci/properties/cmake.properties.json create mode 100644 ci/properties/ios.properties.json create mode 100644 icons/ada.svg create mode 100644 icons/cmake.svg create mode 100644 icons/xcode.svg diff --git a/automation/stale.yml b/automation/stale.yml index 34045177cb..b671fc094c 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v1 + - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue message' diff --git a/ci/ada.yml b/ci/ada.yml new file mode 100644 index 0000000000..a27902a5ed --- /dev/null +++ b/ci/ada.yml @@ -0,0 +1,24 @@ +name: Ada (GNAT) + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up GNAT toolchain + run: > + sudo apt-get update && + sudo apt-get install gnat gprbuild + + - name: Build + run: gprbuild -j0 -p diff --git a/ci/blank.yml b/ci/blank.yml index 72f1f168ba..32142871a4 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -2,14 +2,17 @@ name: CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the $default-branch branch +# Controls when the action will run. on: + # Triggers the workflow on push or pull request events but only for the $default-branch branch push: branches: [ $default-branch ] pull_request: branches: [ $default-branch ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -19,15 +22,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/ci/cmake.yml b/ci/cmake.yml new file mode 100644 index 0000000000..d5217692c3 --- /dev/null +++ b/ci/cmake.yml @@ -0,0 +1,46 @@ +name: CMake + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + # Some projects don't allow in-source building, so create a separate build directory + # We'll use this as our working directory for all subsequent commands + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + # Use a bash shell so we can use the same syntax for environment variable + # access regardless of the host operating system + shell: bash + working-directory: ${{runner.workspace}}/build + # Note the current convention is to use the -S and -B options here to specify source + # and build directories, but this is only available with CMake 3.13 and higher. + # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute the build. You can specify a specific target with "--target " + run: cmake --build . --config $BUILD_TYPE + + - name: Test + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C $BUILD_TYPE diff --git a/ci/dart.yml b/ci/dart.yml index 6e1b2e3d89..138921f500 100644 --- a/ci/dart.yml +++ b/ci/dart.yml @@ -1,4 +1,4 @@ -name: Dart CI +name: Dart on: push: @@ -8,15 +8,34 @@ on: jobs: build: - runs-on: ubuntu-latest + # Note that this workflow uses the latest stable version of the Dart SDK. + # Docker images for other release channels - like dev and beta - are also + # available. See https://hub.docker.com/r/google/dart/ for the available + # images. container: image: google/dart:latest steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: pub get - - name: Run tests - run: pub run test + - uses: actions/checkout@v2 + + - name: Print Dart SDK version + run: dart --version + + - name: Install dependencies + run: dart pub get + + # Uncomment this step to verify the use of 'dart format' on each commit. + # - name: Verify formatting + # run: dart format --output=none --set-exit-if-changed . + + # Consider passing '--fatal-infos' for slightly stricter analysis. + - name: Analyze project source + run: dart analyze + + # Your project will need to have tests in test/ and a dependency on + # package:test for this step to succeed. Note that Flutter projects will + # want to change this to 'flutter test'. + - name: Run tests + run: dart test diff --git a/ci/dotnet-core.yml b/ci/dotnet-core.yml index 03958b66af..9ee1a7d929 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore - name: Build diff --git a/ci/go.yml b/ci/go.yml index 3fa934869a..16bff707ed 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -17,7 +17,6 @@ jobs: uses: actions/setup-go@v2 with: go-version: ^1.13 - id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -31,7 +30,7 @@ jobs: fi - name: Build - run: go build -v . + run: go build -v ./... - name: Test - run: go test -v . + run: go test -v ./... diff --git a/ci/ios.yml b/ci/ios.yml new file mode 100644 index 0000000000..64b14a30a9 --- /dev/null +++ b/ci/ios.yml @@ -0,0 +1,42 @@ +name: iOS starter workflow + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + name: Build and Test default scheme using any available iPhone simulator + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set Default Scheme + run: | + scheme_list=$(xcodebuild -list -json | tr -d "\n") + default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") + echo $default | cat >default + echo Using default scheme: $default + - name: Build + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + - name: Test + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" diff --git a/ci/maven.yml b/ci/maven.yml index 367b842ba8..a46556ab3b 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -21,4 +21,4 @@ jobs: with: java-version: 1.8 - name: Build with Maven - run: mvn --batch-mode --update-snapshots verify + run: mvn -B package --file pom.xml diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index aa47c4e2db..b460edca9a 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -30,7 +30,7 @@ jobs: - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.npm_token}} publish-gpr: needs: build @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - registry-url: https://npm.pkg.github.com/ + registry-url: $registry-url(npm) - run: npm ci - run: npm publish env: diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json new file mode 100644 index 0000000000..71021d003c --- /dev/null +++ b/ci/properties/ada.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Ada", + "description": "Build Ada project with GPRbuild.", + "iconName": "ada", + "categories": ["Ada"] +} diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json new file mode 100644 index 0000000000..ac001c3b78 --- /dev/null +++ b/ci/properties/cmake.properties.json @@ -0,0 +1,6 @@ +{ + "name": "CMake based projects", + "description": "Build and test a CMake based project.", + "iconName": "cmake", + "categories": ["C", "C++"] +} \ No newline at end of file diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json new file mode 100644 index 0000000000..0b3a9edd6d --- /dev/null +++ b/ci/properties/ios.properties.json @@ -0,0 +1,9 @@ +{ + "name": "iOS", + "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", + "iconName": "xcode", + "categories": [ + "iOS", + "Xcode" + ] +} diff --git a/icons/ada.svg b/icons/ada.svg new file mode 100644 index 0000000000..6a0d58fa62 --- /dev/null +++ b/icons/ada.svg @@ -0,0 +1,283 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icons/cmake.svg b/icons/cmake.svg new file mode 100644 index 0000000000..254fe0129b --- /dev/null +++ b/icons/cmake.svg @@ -0,0 +1,493 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/xcode.svg b/icons/xcode.svg new file mode 100644 index 0000000000..a09ea449d9 --- /dev/null +++ b/icons/xcode.svg @@ -0,0 +1 @@ + \ No newline at end of file From 2943b3eb508fbd14acf1c4da206b5ce8676ca6b1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 7 Dec 2020 18:16:29 +0000 Subject: [PATCH 034/185] Updating GHES workflows --- automation/properties/manual.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/properties/manual.properties.json b/automation/properties/manual.properties.json index f08cbc36c6..1befabec0a 100644 --- a/automation/properties/manual.properties.json +++ b/automation/properties/manual.properties.json @@ -1,6 +1,6 @@ { "name": "Manual workflow", "description": "Simple workflow that is manually triggered.", - "iconName": "blank", + "iconName": "octicon person", "categories": ["Automation"] } From f51edc98f22b2f9f38a686b333853af513da7245 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 15 Dec 2020 01:08:26 +0000 Subject: [PATCH 035/185] Updating GHES workflows --- ci/{dotnet-core.yml => dotnet.yml} | 10 +++++----- ci/properties/dotnet-core.properties.json | 6 ------ ci/properties/dotnet.properties.json | 6 ++++++ icons/dotnet.svg | 1 + icons/dotnetcore.svg | 1 - 5 files changed, 12 insertions(+), 12 deletions(-) rename ci/{dotnet-core.yml => dotnet.yml} (62%) delete mode 100644 ci/properties/dotnet-core.properties.json create mode 100644 ci/properties/dotnet.properties.json create mode 100644 icons/dotnet.svg delete mode 100644 icons/dotnetcore.svg diff --git a/ci/dotnet-core.yml b/ci/dotnet.yml similarity index 62% rename from ci/dotnet-core.yml rename to ci/dotnet.yml index 9ee1a7d929..aa0a093cf0 100644 --- a/ci/dotnet-core.yml +++ b/ci/dotnet.yml @@ -1,4 +1,4 @@ -name: .NET Core +name: .NET on: push: @@ -13,13 +13,13 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET Core + - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.301 - - name: Install dependencies + - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build --no-restore - name: Test - run: dotnet test --no-restore --verbosity normal + run: dotnet test --no-build --verbosity normal diff --git a/ci/properties/dotnet-core.properties.json b/ci/properties/dotnet-core.properties.json deleted file mode 100644 index 3386a3d7ee..0000000000 --- a/ci/properties/dotnet-core.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": ".NET Core", - "description": "Build and test a .NET Core or ASP.NET Core project.", - "iconName": "dotnetcore", - "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] -} diff --git a/ci/properties/dotnet.properties.json b/ci/properties/dotnet.properties.json new file mode 100644 index 0000000000..b3feafb9cf --- /dev/null +++ b/ci/properties/dotnet.properties.json @@ -0,0 +1,6 @@ +{ + "name": ".NET", + "description": "Build and test a .NET or ASP.NET Core project.", + "iconName": "dotnet", + "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] +} diff --git a/icons/dotnet.svg b/icons/dotnet.svg new file mode 100644 index 0000000000..9cb09d7da1 --- /dev/null +++ b/icons/dotnet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/dotnetcore.svg b/icons/dotnetcore.svg deleted file mode 100644 index 6d31060b33..0000000000 --- a/icons/dotnetcore.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From dab11a230aac0f75e01ee278f9128d2ca3495ff5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 18 Dec 2020 20:01:57 +0000 Subject: [PATCH 036/185] Updating GHES workflows --- ci/android.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/android.yml b/ci/android.yml index c88c515ea9..6954a616dd 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -17,5 +17,7 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 + - name: Grant execute permission for gradlew + run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build From c21d165d2cfe7d56bab8f0a31b675c38d160b9f4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 18 Dec 2020 20:58:48 +0000 Subject: [PATCH 037/185] Updating GHES workflows --- ci/laravel.yml | 32 --------------------------- ci/properties/laravel.properties.json | 9 -------- icons/php.svg | 1 - 3 files changed, 42 deletions(-) delete mode 100644 ci/laravel.yml delete mode 100644 ci/properties/laravel.properties.json delete mode 100644 icons/php.svg diff --git a/ci/laravel.yml b/ci/laravel.yml deleted file mode 100644 index b32ad881b8..0000000000 --- a/ci/laravel.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Laravel - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - laravel-tests: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Copy .env - run: php -r "file_exists('.env') || copy('.env.example', '.env');" - - name: Install Dependencies - run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: Generate key - run: php artisan key:generate - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache - - name: Create Database - run: | - mkdir -p database - touch database/database.sqlite - - name: Execute tests (Unit and Feature tests) via PHPUnit - env: - DB_CONNECTION: sqlite - DB_DATABASE: database/database.sqlite - run: vendor/bin/phpunit diff --git a/ci/properties/laravel.properties.json b/ci/properties/laravel.properties.json deleted file mode 100644 index f10a4623af..0000000000 --- a/ci/properties/laravel.properties.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "Laravel", - "description": "Test a Laravel project.", - "iconName": "php", - "categories": [ - "PHP", - "Laravel" - ] -} \ No newline at end of file diff --git a/icons/php.svg b/icons/php.svg deleted file mode 100644 index 5a3bfa907a..0000000000 --- a/icons/php.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 29002989f9de66404f4557faa0c58eac765c623b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 4 Jan 2021 16:17:06 +0000 Subject: [PATCH 038/185] Updating GHES workflows --- ci/node.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index ce0cdcfd8e..632c1a6daa 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -16,7 +16,8 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [10.x, 12.x, 14.x, 15.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v2 From 0c8aae959b35c4b5552f66e7f83982dc8ae533f9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 4 Jan 2021 18:52:55 +0000 Subject: [PATCH 039/185] Updating GHES workflows --- ci/cmake.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index d5217692c3..005915e6e8 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -20,26 +20,26 @@ jobs: - name: Create Build Environment # Some projects don't allow in-source building, so create a separate build directory # We'll use this as our working directory for all subsequent commands - run: cmake -E make_directory ${{runner.workspace}}/build + run: cmake -E make_directory ${{github.workspace}}/build - name: Configure CMake # Use a bash shell so we can use the same syntax for environment variable # access regardless of the host operating system shell: bash - working-directory: ${{runner.workspace}}/build + working-directory: ${{github.workspace}}/build # Note the current convention is to use the -S and -B options here to specify source # and build directories, but this is only available with CMake 3.13 and higher. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - name: Build - working-directory: ${{runner.workspace}}/build + working-directory: ${{github.workspace}}/build shell: bash # Execute the build. You can specify a specific target with "--target " run: cmake --build . --config $BUILD_TYPE - name: Test - working-directory: ${{runner.workspace}}/build + working-directory: ${{github.workspace}}/build shell: bash # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail From 3c3f778c3003f99d1abf0772107a03c8283e3cf1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 5 Jan 2021 16:48:50 +0000 Subject: [PATCH 040/185] Updating GHES workflows --- ci/go.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/ci/go.yml b/ci/go.yml index 16bff707ed..bcf4489be4 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -9,25 +9,14 @@ on: jobs: build: - name: Build runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - - name: Set up Go 1.x + - name: Set up Go uses: actions/setup-go@v2 with: - go-version: ^1.13 - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi + go-version: 1.15 - name: Build run: go build -v ./... From 17479bc603b7a6dc673186c1cdfa566fb6fd7082 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 15 Jan 2021 20:21:19 +0000 Subject: [PATCH 041/185] Updating GHES workflows --- ci/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index aa0a093cf0..c31cf6857f 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 5.0.x - name: Restore dependencies run: dotnet restore - name: Build From b35c8db5d7f7f4346c3bee954f655e57f34b9384 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 26 Feb 2021 22:25:50 +0000 Subject: [PATCH 042/185] Updating GHES workflows --- ci/dart.yml | 41 ------------------------------ ci/properties/dart.properties.json | 6 ----- icons/dart.svg | 1 - 3 files changed, 48 deletions(-) delete mode 100644 ci/dart.yml delete mode 100644 ci/properties/dart.properties.json delete mode 100644 icons/dart.svg diff --git a/ci/dart.yml b/ci/dart.yml deleted file mode 100644 index 138921f500..0000000000 --- a/ci/dart.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Dart - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - runs-on: ubuntu-latest - - # Note that this workflow uses the latest stable version of the Dart SDK. - # Docker images for other release channels - like dev and beta - are also - # available. See https://hub.docker.com/r/google/dart/ for the available - # images. - container: - image: google/dart:latest - - steps: - - uses: actions/checkout@v2 - - - name: Print Dart SDK version - run: dart --version - - - name: Install dependencies - run: dart pub get - - # Uncomment this step to verify the use of 'dart format' on each commit. - # - name: Verify formatting - # run: dart format --output=none --set-exit-if-changed . - - # Consider passing '--fatal-infos' for slightly stricter analysis. - - name: Analyze project source - run: dart analyze - - # Your project will need to have tests in test/ and a dependency on - # package:test for this step to succeed. Note that Flutter projects will - # want to change this to 'flutter test'. - - name: Run tests - run: dart test diff --git a/ci/properties/dart.properties.json b/ci/properties/dart.properties.json deleted file mode 100644 index 022a003227..0000000000 --- a/ci/properties/dart.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Dart", - "description": "Build and test a Dart project with Pub.", - "iconName": "dart", - "categories": ["Dart"] -} diff --git a/icons/dart.svg b/icons/dart.svg deleted file mode 100644 index 1ceb716d52..0000000000 --- a/icons/dart.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From e2eeba9fc2f9d40f9e6610244be3ece95366c95a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 5 Apr 2021 15:31:49 +0000 Subject: [PATCH 043/185] Updating GHES workflows --- ci/android.yml | 8 +++++--- ci/ant.yml | 7 ++++--- ci/gradle-publish.yml | 9 +++++---- ci/gradle.yml | 7 ++++--- ci/maven-publish.yml | 11 ++++++----- ci/maven.yml | 7 ++++--- ci/scala.yml | 7 ++++--- 7 files changed, 32 insertions(+), 24 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 6954a616dd..4bbc689631 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -13,10 +13,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: set up JDK 1.8 - uses: actions/setup-java@v1 + - name: set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adopt' + - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/ci/ant.yml b/ci/ant.yml index 28fe6d0529..655a94c90e 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -16,9 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adopt' - name: Build with Ant run: ant -noinput -buildfile build.xml diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index cec487ecc5..ef99e13d3f 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -1,5 +1,5 @@ # This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java#publishing-using-gradle +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle name: Gradle Package @@ -14,10 +14,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adopt' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/ci/gradle.yml b/ci/gradle.yml index 4550f5880d..6e7e922b22 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -16,10 +16,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adopt' - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index fb1c7eec77..c3f4855017 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -1,5 +1,5 @@ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path name: Maven Package @@ -14,10 +14,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adopt' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file @@ -27,4 +28,4 @@ jobs: - name: Publish to GitHub Packages Apache Maven run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml env: - GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file + GITHUB_TOKEN: ${{ github.token }} diff --git a/ci/maven.yml b/ci/maven.yml index a46556ab3b..923425b43e 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -16,9 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adopt' - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/ci/scala.yml b/ci/scala.yml index 96bfc70de1..4a3c112725 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -13,9 +13,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 11 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: '11' + distribution: 'adopt' - name: Run tests run: sbt test From 4ec495b664bc8019b007f137c0bda6d29a4e618d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 9 Apr 2021 22:34:42 +0000 Subject: [PATCH 044/185] Updating GHES workflows --- ci/node.js.yml | 2 +- ci/npm-publish.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 632c1a6daa..06cd54bc93 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: npm ci diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index b460edca9a..1b4952d8de 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 - run: npm ci @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 registry-url: https://registry.npmjs.org/ @@ -37,7 +37,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 registry-url: $registry-url(npm) From bb7e655faa7c4ef8189fc495a718ed680577d6e5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 16 Apr 2021 21:28:56 +0000 Subject: [PATCH 045/185] Updating GHES workflows --- ci/jekyll.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 9449a6efae..71920c128d 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -17,4 +17,4 @@ jobs: run: | docker run \ -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ - jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future" + jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future" From 5de4fccfd1a717641d5583db20424b55992b07a9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 27 Apr 2021 15:14:34 +0000 Subject: [PATCH 046/185] Updating GHES workflows --- automation/stale.yml | 3 +++ ci/docker-publish.yml | 4 ++++ ci/gradle-publish.yml | 3 +++ ci/maven-publish.yml | 3 +++ ci/npm-publish.yml | 3 +++ 5 files changed, 16 insertions(+) diff --git a/automation/stale.yml b/automation/stale.yml index b671fc094c..30c3dd9bc9 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -8,6 +8,9 @@ jobs: stale: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/stale@v3 diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index 76756dbf1e..ba6974478c 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -44,6 +44,10 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' + permissions: + contents: read + packages: write + steps: - uses: actions/checkout@v2 diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml index ef99e13d3f..a74a1ce2eb 100644 --- a/ci/gradle-publish.yml +++ b/ci/gradle-publish.yml @@ -11,6 +11,9 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index c3f4855017..18dd937d4e 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -11,6 +11,9 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 1b4952d8de..84629029a3 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -35,6 +35,9 @@ jobs: publish-gpr: needs: build runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 From 4fc6cb167f1031d2a3b182c97f0d884e1dd2b11b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 27 Apr 2021 18:38:04 +0000 Subject: [PATCH 047/185] Updating GHES workflows --- ci/cmake.yml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 005915e6e8..16341407df 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -1,6 +1,10 @@ name: CMake -on: [push] +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -17,30 +21,18 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Create Build Environment - # Some projects don't allow in-source building, so create a separate build directory - # We'll use this as our working directory for all subsequent commands - run: cmake -E make_directory ${{github.workspace}}/build - - name: Configure CMake - # Use a bash shell so we can use the same syntax for environment variable - # access regardless of the host operating system - shell: bash - working-directory: ${{github.workspace}}/build - # Note the current convention is to use the -S and -B options here to specify source - # and build directories, but this is only available with CMake 3.13 and higher. - # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build - working-directory: ${{github.workspace}}/build - shell: bash - # Execute the build. You can specify a specific target with "--target " - run: cmake --build . --config $BUILD_TYPE + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - name: Test working-directory: ${{github.workspace}}/build - shell: bash # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest -C $BUILD_TYPE + run: ctest -C ${{env.BUILD_TYPE}} + From 9858eebcaa15e4e17fed0fb47f4aca8aa2480744 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 5 May 2021 15:46:33 +0000 Subject: [PATCH 048/185] Updating GHES workflows --- ci/ios.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/ios.yml b/ci/ios.yml index 64b14a30a9..74c974d1dc 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -25,7 +25,8 @@ jobs: scheme: ${{ 'default' }} platform: ${{ 'iOS Simulator' }} run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) + device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` @@ -35,7 +36,8 @@ jobs: scheme: ${{ 'default' }} platform: ${{ 'iOS Simulator' }} run: | - device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) + device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` From e0ca3968900cc92adb9df2196c7e9527f8789bec Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 2 Jun 2021 23:04:58 +0000 Subject: [PATCH 049/185] Updating GHES workflows --- ci/docker-publish.yml | 80 -------------------- ci/properties/docker-publish.properties.json | 6 -- 2 files changed, 86 deletions(-) delete mode 100644 ci/docker-publish.yml delete mode 100644 ci/properties/docker-publish.properties.json diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml deleted file mode 100644 index ba6974478c..0000000000 --- a/ci/docker-publish.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: Docker - -on: - push: - # Publish `$default-branch` as Docker `latest` image. - branches: - - $default-branch - - # Publish `v1.2.3` tags as releases. - tags: - - v* - - # Run tests for any PRs. - pull_request: - -env: - # TODO: Change variable to your image's name. - IMAGE_NAME: image - -jobs: - # Run tests. - # See also https://docs.docker.com/docker-hub/builds/automated-testing/ - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Run tests - run: | - if [ -f docker-compose.test.yml ]; then - docker-compose --file docker-compose.test.yml build - docker-compose --file docker-compose.test.yml run sut - else - docker build . --file Dockerfile - fi - - # Push image to GitHub Packages. - # See also https://docs.docker.com/docker-hub/builds/ - push: - # Ensure test job passes before pushing image. - needs: test - - runs-on: ubuntu-latest - if: github.event_name == 'push' - - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v2 - - - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME - - - name: Log into registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - - - name: Push image - run: | - IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME - - # Change all uppercase to lowercase - IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') - - # Strip git ref prefix from version - VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') - - # Strip "v" prefix from tag name - [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') - - # Use Docker `latest` tag convention - [ "$VERSION" == "$default-branch" ] && VERSION=latest - - echo IMAGE_ID=$IMAGE_ID - echo VERSION=$VERSION - - docker tag $IMAGE_NAME $IMAGE_ID:$VERSION - docker push $IMAGE_ID:$VERSION diff --git a/ci/properties/docker-publish.properties.json b/ci/properties/docker-publish.properties.json deleted file mode 100644 index 1b36c0f0e9..0000000000 --- a/ci/properties/docker-publish.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Publish Docker Container", - "description": "Build, test and push Docker image to GitHub Packages.", - "iconName": "docker", - "categories": ["Dockerfile"] -} From 0c0632eda058f46e9b01d7a221e5a2e033d630a3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 3 Jun 2021 19:07:39 +0000 Subject: [PATCH 050/185] Updating GHES workflows --- automation/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/stale.yml b/automation/stale.yml index 30c3dd9bc9..277380bad6 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -2,7 +2,7 @@ name: Mark stale issues and pull requests on: schedule: - - cron: "30 1 * * *" + - cron: $cron-daily jobs: stale: From 67c938b27c18e89d787f1348cfb635318099b785 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 14 Jun 2021 17:29:19 +0000 Subject: [PATCH 051/185] Updating GHES workflows --- ci/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/ios.yml b/ci/ios.yml index 74c974d1dc..032b77a057 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -37,7 +37,7 @@ jobs: platform: ${{ 'iOS Simulator' }} run: | # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) - device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`` + device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` From 050f2780b3de9c63a98b97bf15c9e9f12aef4690 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 16 Jun 2021 02:09:59 +0000 Subject: [PATCH 052/185] Updating GHES workflows --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 06cd54bc93..2f609845ab 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x, 15.x] + node-version: [12.x, 14.x, 16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: From 96094e8e765b7a6886d58ec23a699523f042d948 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 21 Jun 2021 17:56:28 +0000 Subject: [PATCH 053/185] Updating GHES workflows --- ci/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/go.yml b/ci/go.yml index bcf4489be4..22a110a426 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.15 + go-version: 1.16 - name: Build run: go build -v ./... From c8e5f9fd1cbe0a9195f71fb24b04ff17cc1fcb67 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 23 Jun 2021 19:16:16 +0000 Subject: [PATCH 054/185] Updating GHES workflows --- ci/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/blank.yml b/ci/blank.yml index 32142871a4..895e5d1d76 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -2,7 +2,7 @@ name: CI -# Controls when the action will run. +# Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the $default-branch branch push: From fc6320d8d188b326f8da46241e3574e5537e387a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 25 Jun 2021 20:57:32 +0000 Subject: [PATCH 055/185] Updating GHES workflows --- ci/properties/blank.properties.json | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/properties/blank.properties.json b/ci/properties/blank.properties.json index d244772cfd..610327f083 100644 --- a/ci/properties/blank.properties.json +++ b/ci/properties/blank.properties.json @@ -1,6 +1,7 @@ { "name": "Simple workflow", "description": "Start with a file with the minimum necessary structure.", + "creator": "GitHub", "iconName": "blank", "categories": null } From 09d65e8bb90c006f97a7f60314451dcedce12d8d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 25 Jun 2021 21:00:29 +0000 Subject: [PATCH 056/185] Updating GHES workflows --- ci/npm-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 84629029a3..025976d6e2 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 - run: npm ci - run: npm test @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 registry-url: $registry-url(npm) - run: npm ci - run: npm publish From 920b11c2f0412ffaf595123e01b5d560e66396a1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 1 Jul 2021 12:58:50 +0000 Subject: [PATCH 057/185] Updating GHES workflows --- ci/node.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 2f609845ab..89b24fed53 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,4 +1,4 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions name: Node.js CI @@ -25,6 +25,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'npm' - run: npm ci - run: npm run build --if-present - run: npm test From 64a66cc158863cd4482f25fac7c0c276ca3d1940 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 26 Jul 2021 11:15:04 +0000 Subject: [PATCH 058/185] Updating GHES workflows --- ci/grunt.yml | 28 +++++++++++++++++++++++++++ ci/gulp.yml | 28 +++++++++++++++++++++++++++ ci/properties/grunt.properties.json | 6 ++++++ ci/properties/gulp.properties.json | 6 ++++++ ci/properties/webpack.properties.json | 6 ++++++ ci/webpack.yml | 28 +++++++++++++++++++++++++++ icons/grunt.svg | 1 + icons/gulp.svg | 1 + icons/webpack.svg | 1 + 9 files changed, 105 insertions(+) create mode 100644 ci/grunt.yml create mode 100644 ci/gulp.yml create mode 100644 ci/properties/grunt.properties.json create mode 100644 ci/properties/gulp.properties.json create mode 100644 ci/properties/webpack.properties.json create mode 100644 ci/webpack.yml create mode 100644 icons/grunt.svg create mode 100644 icons/gulp.svg create mode 100644 icons/webpack.svg diff --git a/ci/grunt.yml b/ci/grunt.yml new file mode 100644 index 0000000000..8c83cb6237 --- /dev/null +++ b/ci/grunt.yml @@ -0,0 +1,28 @@ +name: NodeJS with Grunt + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + grunt diff --git a/ci/gulp.yml b/ci/gulp.yml new file mode 100644 index 0000000000..cc5da138f7 --- /dev/null +++ b/ci/gulp.yml @@ -0,0 +1,28 @@ +name: NodeJS with Gulp + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + gulp diff --git a/ci/properties/grunt.properties.json b/ci/properties/grunt.properties.json new file mode 100644 index 0000000000..c8a5b9f717 --- /dev/null +++ b/ci/properties/grunt.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Grunt", + "description": "Build a NodeJS project with npm and grunt.", + "iconName": "grunt", + "categories": ["JavaScript", "TypeScript", "npm", "Grunt"] +} diff --git a/ci/properties/gulp.properties.json b/ci/properties/gulp.properties.json new file mode 100644 index 0000000000..658325ba54 --- /dev/null +++ b/ci/properties/gulp.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Gulp", + "description": "Build a NodeJS project with npm and gulp.", + "iconName": "gulp", + "categories": ["JavaScript", "TypeScript", "npm", "Gulp"] +} diff --git a/ci/properties/webpack.properties.json b/ci/properties/webpack.properties.json new file mode 100644 index 0000000000..1e22ccb69c --- /dev/null +++ b/ci/properties/webpack.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Webpack", + "description": "Build a NodeJS project with npm and webpack.", + "iconName": "webpack", + "categories": ["JavaScript", "TypeScript", "npm", "Webpack"] +} diff --git a/ci/webpack.yml b/ci/webpack.yml new file mode 100644 index 0000000000..8edb34f4bb --- /dev/null +++ b/ci/webpack.yml @@ -0,0 +1,28 @@ +name: NodeJS with Webpack + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + npx webpack diff --git a/icons/grunt.svg b/icons/grunt.svg new file mode 100644 index 0000000000..ce8e4a6cf1 --- /dev/null +++ b/icons/grunt.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/gulp.svg b/icons/gulp.svg new file mode 100644 index 0000000000..a99af85e85 --- /dev/null +++ b/icons/gulp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/webpack.svg b/icons/webpack.svg new file mode 100644 index 0000000000..3e94424714 --- /dev/null +++ b/icons/webpack.svg @@ -0,0 +1 @@ + \ No newline at end of file From 49dc04ba876573c56490374d5fd3abff0b451368 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 26 Jul 2021 15:27:09 +0000 Subject: [PATCH 059/185] Updating GHES workflows --- ci/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/ios.yml b/ci/ios.yml index 032b77a057..ab92d322ad 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -26,7 +26,7 @@ jobs: platform: ${{ 'iOS Simulator' }} run: | # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) - device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`` + device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` From 6cdaf1fd4819104dc453e95c21adc49907808adc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 18 Aug 2021 23:28:41 +0000 Subject: [PATCH 060/185] Updating GHES workflows --- ci/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/go.yml b/ci/go.yml index 22a110a426..afff652f99 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 - name: Build run: go build -v ./... From 6db2679ba53510c41fde55d2e672b935c37cb5e7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 24 Aug 2021 15:28:18 +0000 Subject: [PATCH 061/185] Updating GHES workflows --- ci/android.yml | 1 + ci/gradle.yml | 3 ++- ci/maven.yml | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 4bbc689631..3037b9ff1b 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -18,6 +18,7 @@ jobs: with: java-version: '11' distribution: 'adopt' + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/ci/gradle.yml b/ci/gradle.yml index 6e7e922b22..5ecabbaa11 100644 --- a/ci/gradle.yml +++ b/ci/gradle.yml @@ -1,4 +1,4 @@ -# This workflow will build a Java project with Gradle +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle name: Java CI with Gradle @@ -21,6 +21,7 @@ jobs: with: java-version: '11' distribution: 'adopt' + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/ci/maven.yml b/ci/maven.yml index 923425b43e..ac3b6de431 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -1,4 +1,4 @@ -# This workflow will build a Java project with Maven +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven name: Java CI with Maven @@ -21,5 +21,6 @@ jobs: with: java-version: '11' distribution: 'adopt' + cache: maven - name: Build with Maven run: mvn -B package --file pom.xml From 7529a578ebefcbc71bae8e0f73caa0d30f717f5b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Aug 2021 04:29:16 +0000 Subject: [PATCH 062/185] Updating GHES workflows --- ci/properties/node.js.properties.json | 2 +- ci/properties/npm-publish.properties.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json index 6ab4c53072..557222a652 100644 --- a/ci/properties/node.js.properties.json +++ b/ci/properties/node.js.properties.json @@ -2,5 +2,5 @@ "name": "Node.js", "description": "Build and test a Node.js project with npm.", "iconName": "nodejs", - "categories": ["JavaScript", "Node", "Npm"] + "categories": ["JavaScript", "npm"] } diff --git a/ci/properties/npm-publish.properties.json b/ci/properties/npm-publish.properties.json index d253373b18..764dbf37bb 100644 --- a/ci/properties/npm-publish.properties.json +++ b/ci/properties/npm-publish.properties.json @@ -2,5 +2,5 @@ "name": "Publish Node.js Package", "description": "Publishes a Node.js package to npm and GitHub Packages.", "iconName": "node-package-transparent", - "categories": ["JavaScript", "SDLC"] + "categories": ["JavaScript", "npm"] } From c6a566944c6ebe3d425096b9c337d9f2167e6f93 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 1 Sep 2021 18:54:06 +0000 Subject: [PATCH 063/185] Updating GHES workflows --- automation/stale.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/automation/stale.yml b/automation/stale.yml index 277380bad6..ff88dc0809 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -1,3 +1,8 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale name: Mark stale issues and pull requests on: From a5d8a2485006662f059c93bcb35dcf8b3bb14d70 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 8 Sep 2021 10:05:32 +0000 Subject: [PATCH 064/185] Updating GHES workflows --- code-scanning/codeql.yml | 71 +++++++++++++++++++ .../properties/codeql.properties.json | 7 ++ 2 files changed, 78 insertions(+) create mode 100644 code-scanning/codeql.yml create mode 100644 code-scanning/properties/codeql.properties.json diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml new file mode 100644 index 0000000000..b32675e536 --- /dev/null +++ b/code-scanning/codeql.yml @@ -0,0 +1,71 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ $detected-codeql-languages ] + # CodeQL supports [ $supported-codeql-languages ] + # Learn more: + # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/code-scanning/properties/codeql.properties.json b/code-scanning/properties/codeql.properties.json new file mode 100644 index 0000000000..cb9305a9a1 --- /dev/null +++ b/code-scanning/properties/codeql.properties.json @@ -0,0 +1,7 @@ +{ + "name": "CodeQL Analysis", + "creator": "GitHub", + "description": "Security analysis from GitHub for C, C++, C#, Java, JavaScript, TypeScript, Python, and Go developers.", + "iconName": "octicon mark-github", + "categories": ["Code Scanning", "C", "C#", "C++", "Go", "Java", "JavaScript", "TypeScript", "Python"] +} From c872171c0c7248606c9404d8e925b11db2268b00 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 9 Sep 2021 10:47:00 +0000 Subject: [PATCH 065/185] Updating GHES workflows --- ci/properties/node.js.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json index 557222a652..c982d17554 100644 --- a/ci/properties/node.js.properties.json +++ b/ci/properties/node.js.properties.json @@ -2,5 +2,5 @@ "name": "Node.js", "description": "Build and test a Node.js project with npm.", "iconName": "nodejs", - "categories": ["JavaScript", "npm"] + "categories": ["JavaScript", "npm", "React", "Angular"] } From 3613922186339d13d15e32bfc4b17ee09329de1d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 14 Sep 2021 02:35:24 +0000 Subject: [PATCH 066/185] Updating GHES workflows --- ci/properties/gradle-publish.properties.json | 2 +- ci/properties/gradle.properties.json | 2 +- ci/properties/maven-publish.properties.json | 2 +- ci/properties/maven.properties.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/properties/gradle-publish.properties.json b/ci/properties/gradle-publish.properties.json index 90b7295585..3ec3f4f1cd 100644 --- a/ci/properties/gradle-publish.properties.json +++ b/ci/properties/gradle-publish.properties.json @@ -2,5 +2,5 @@ "name": "Publish Java Package with Gradle", "description": "Build a Java Package using Gradle and publish to GitHub Packages.", "iconName": "gradle", - "categories": ["Java", "Gradle"] + "categories": ["Java", "Gradle", "Spring", "JSF"] } \ No newline at end of file diff --git a/ci/properties/gradle.properties.json b/ci/properties/gradle.properties.json index bfe1a6f045..c90f78f88e 100644 --- a/ci/properties/gradle.properties.json +++ b/ci/properties/gradle.properties.json @@ -2,5 +2,5 @@ "name": "Java with Gradle", "description": "Build and test a Java project using a Gradle wrapper script.", "iconName": "gradle", - "categories": ["Java", "Gradle"] + "categories": ["Java", "Gradle", "Spring", "JSF"] } diff --git a/ci/properties/maven-publish.properties.json b/ci/properties/maven-publish.properties.json index 2f59f41478..41f29159ee 100644 --- a/ci/properties/maven-publish.properties.json +++ b/ci/properties/maven-publish.properties.json @@ -2,5 +2,5 @@ "name": "Publish Java Package with Maven", "description": "Build a Java Package using Maven and publish to GitHub Packages.", "iconName": "maven", - "categories": ["Java", "Maven"] + "categories": ["Java", "Maven", "Spring", "JSF"] } \ No newline at end of file diff --git a/ci/properties/maven.properties.json b/ci/properties/maven.properties.json index e322d04152..408647017f 100644 --- a/ci/properties/maven.properties.json +++ b/ci/properties/maven.properties.json @@ -2,5 +2,5 @@ "name": "Java with Maven", "description": "Build and test a Java project with Apache Maven.", "iconName": "maven", - "categories": ["Java", "Maven"] + "categories": ["Java", "Maven", "Spring", "JSF"] } From 32719e08a6541b9fbce8044a84c736c6f0550f9f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Sep 2021 05:30:31 +0000 Subject: [PATCH 067/185] Updating GHES workflows --- ci/properties/ada.properties.json | 2 +- ci/properties/android.properties.json | 2 +- ci/properties/ant.properties.json | 2 +- ci/properties/c-cpp.properties.json | 2 +- ci/properties/clojure.properties.json | 2 +- ci/properties/cmake.properties.json | 2 +- ci/properties/crystal.properties.json | 2 +- ci/properties/docker-image.properties.json | 2 +- ci/properties/dotnet.properties.json | 2 +- ci/properties/erlang.properties.json | 2 +- ci/properties/go.properties.json | 2 +- ci/properties/gradle-publish.properties.json | 2 +- ci/properties/gradle.properties.json | 2 +- ci/properties/grunt.properties.json | 2 +- ci/properties/gulp.properties.json | 2 +- ci/properties/ios.properties.json | 1 + ci/properties/jekyll.properties.json | 2 +- ci/properties/maven-publish.properties.json | 2 +- ci/properties/maven.properties.json | 2 +- ci/properties/node.js.properties.json | 2 +- ci/properties/npm-publish.properties.json | 2 +- ci/properties/rust.properties.json | 2 +- ci/properties/scala.properties.json | 2 +- ci/properties/swift.properties.json | 2 +- ci/properties/webpack.properties.json | 2 +- 25 files changed, 25 insertions(+), 24 deletions(-) diff --git a/ci/properties/ada.properties.json b/ci/properties/ada.properties.json index 71021d003c..c4c2b3a3a0 100644 --- a/ci/properties/ada.properties.json +++ b/ci/properties/ada.properties.json @@ -2,5 +2,5 @@ "name": "Ada", "description": "Build Ada project with GPRbuild.", "iconName": "ada", - "categories": ["Ada"] + "categories": ["Continuous integration", "Ada"] } diff --git a/ci/properties/android.properties.json b/ci/properties/android.properties.json index 29d293f1a5..a3ff2cdcea 100644 --- a/ci/properties/android.properties.json +++ b/ci/properties/android.properties.json @@ -2,5 +2,5 @@ "name": "Android CI", "description": "Build an Android project with Gradle.", "iconName": "android", - "categories": ["Java", "Mobile"] + "categories": ["Continuous integration", "Java", "Mobile"] } diff --git a/ci/properties/ant.properties.json b/ci/properties/ant.properties.json index 5a4d7a99e8..93d54738cf 100644 --- a/ci/properties/ant.properties.json +++ b/ci/properties/ant.properties.json @@ -2,5 +2,5 @@ "name": "Java with Ant", "description": "Build and test a Java project with Apache Ant.", "iconName": "ant", - "categories": ["Ant", "Java"] + "categories": ["Continuous integration", "Ant", "Java"] } diff --git a/ci/properties/c-cpp.properties.json b/ci/properties/c-cpp.properties.json index 5d2a2df038..2d214a4087 100644 --- a/ci/properties/c-cpp.properties.json +++ b/ci/properties/c-cpp.properties.json @@ -2,5 +2,5 @@ "name": "C/C++ with Make", "description": "Build and test a C/C++ project using Make.", "iconName": "c-cpp", - "categories": ["C", "C++"] + "categories": ["Continuous integration", "C", "C++"] } diff --git a/ci/properties/clojure.properties.json b/ci/properties/clojure.properties.json index 5a9e3ed163..f57dfdf3d2 100644 --- a/ci/properties/clojure.properties.json +++ b/ci/properties/clojure.properties.json @@ -2,5 +2,5 @@ "name": "Clojure", "description": "Build and test a Clojure project with Leiningen.", "iconName": "clojure", - "categories": ["Clojure", "Java"] + "categories": ["Continuous integration", "Clojure", "Java"] } diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json index ac001c3b78..a7f5d0670d 100644 --- a/ci/properties/cmake.properties.json +++ b/ci/properties/cmake.properties.json @@ -2,5 +2,5 @@ "name": "CMake based projects", "description": "Build and test a CMake based project.", "iconName": "cmake", - "categories": ["C", "C++"] + "categories": ["Continuous integration", "C", "C++"] } \ No newline at end of file diff --git a/ci/properties/crystal.properties.json b/ci/properties/crystal.properties.json index bb058f760e..244adbf021 100644 --- a/ci/properties/crystal.properties.json +++ b/ci/properties/crystal.properties.json @@ -2,5 +2,5 @@ "name": "Crystal", "description": "Build and test a Crystal project.", "iconName": "crystal", - "categories": ["Crystal"] + "categories": ["Continuous integration", "Crystal"] } diff --git a/ci/properties/docker-image.properties.json b/ci/properties/docker-image.properties.json index 8ad7552468..b13144ccb7 100644 --- a/ci/properties/docker-image.properties.json +++ b/ci/properties/docker-image.properties.json @@ -2,5 +2,5 @@ "name": "Docker image", "description": "Build a Docker image to deploy, run, or push to a registry.", "iconName": "docker", - "categories": ["Dockerfile"] + "categories": ["Continuous integration", "Dockerfile"] } diff --git a/ci/properties/dotnet.properties.json b/ci/properties/dotnet.properties.json index b3feafb9cf..d4f6eb2292 100644 --- a/ci/properties/dotnet.properties.json +++ b/ci/properties/dotnet.properties.json @@ -2,5 +2,5 @@ "name": ".NET", "description": "Build and test a .NET or ASP.NET Core project.", "iconName": "dotnet", - "categories": ["C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] + "categories": ["Continuous integration", "C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] } diff --git a/ci/properties/erlang.properties.json b/ci/properties/erlang.properties.json index d712b0564c..eba9af698f 100644 --- a/ci/properties/erlang.properties.json +++ b/ci/properties/erlang.properties.json @@ -2,5 +2,5 @@ "name": "Erlang", "description": "Build and test an Erlang project with rebar.", "iconName": "erlang", - "categories": ["Erlang"] + "categories": ["Continuous integration", "Erlang"] } diff --git a/ci/properties/go.properties.json b/ci/properties/go.properties.json index b96c0a1159..1187f94bb4 100644 --- a/ci/properties/go.properties.json +++ b/ci/properties/go.properties.json @@ -2,5 +2,5 @@ "name": "Go", "description": "Build a Go project.", "iconName": "go", - "categories": ["Go"] + "categories": ["Continuous integration", "Go"] } diff --git a/ci/properties/gradle-publish.properties.json b/ci/properties/gradle-publish.properties.json index 3ec3f4f1cd..0155310cb2 100644 --- a/ci/properties/gradle-publish.properties.json +++ b/ci/properties/gradle-publish.properties.json @@ -2,5 +2,5 @@ "name": "Publish Java Package with Gradle", "description": "Build a Java Package using Gradle and publish to GitHub Packages.", "iconName": "gradle", - "categories": ["Java", "Gradle", "Spring", "JSF"] + "categories": ["Continuous integration", "Java", "Gradle", "Spring", "JSF"] } \ No newline at end of file diff --git a/ci/properties/gradle.properties.json b/ci/properties/gradle.properties.json index c90f78f88e..47d1ddb3ff 100644 --- a/ci/properties/gradle.properties.json +++ b/ci/properties/gradle.properties.json @@ -2,5 +2,5 @@ "name": "Java with Gradle", "description": "Build and test a Java project using a Gradle wrapper script.", "iconName": "gradle", - "categories": ["Java", "Gradle", "Spring", "JSF"] + "categories": ["Continuous integration", "Java", "Gradle", "Spring", "JSF"] } diff --git a/ci/properties/grunt.properties.json b/ci/properties/grunt.properties.json index c8a5b9f717..34a0a350dd 100644 --- a/ci/properties/grunt.properties.json +++ b/ci/properties/grunt.properties.json @@ -2,5 +2,5 @@ "name": "Grunt", "description": "Build a NodeJS project with npm and grunt.", "iconName": "grunt", - "categories": ["JavaScript", "TypeScript", "npm", "Grunt"] + "categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Grunt"] } diff --git a/ci/properties/gulp.properties.json b/ci/properties/gulp.properties.json index 658325ba54..3b4201aaf5 100644 --- a/ci/properties/gulp.properties.json +++ b/ci/properties/gulp.properties.json @@ -2,5 +2,5 @@ "name": "Gulp", "description": "Build a NodeJS project with npm and gulp.", "iconName": "gulp", - "categories": ["JavaScript", "TypeScript", "npm", "Gulp"] + "categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Gulp"] } diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json index 0b3a9edd6d..f88edc969d 100644 --- a/ci/properties/ios.properties.json +++ b/ci/properties/ios.properties.json @@ -3,6 +3,7 @@ "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", "iconName": "xcode", "categories": [ + "Continuous integration", "iOS", "Xcode" ] diff --git a/ci/properties/jekyll.properties.json b/ci/properties/jekyll.properties.json index 38cc6cd23d..bbe279cbea 100644 --- a/ci/properties/jekyll.properties.json +++ b/ci/properties/jekyll.properties.json @@ -2,5 +2,5 @@ "name": "Jekyll", "description": "Package a Jekyll site using the jekyll/builder Docker image.", "iconName": "jekyll", - "categories": ["HTML"] + "categories": ["Continuous integration", "HTML"] } diff --git a/ci/properties/maven-publish.properties.json b/ci/properties/maven-publish.properties.json index 41f29159ee..2bc750fa4d 100644 --- a/ci/properties/maven-publish.properties.json +++ b/ci/properties/maven-publish.properties.json @@ -2,5 +2,5 @@ "name": "Publish Java Package with Maven", "description": "Build a Java Package using Maven and publish to GitHub Packages.", "iconName": "maven", - "categories": ["Java", "Maven", "Spring", "JSF"] + "categories": ["Continuous integration", "Java", "Maven", "Spring", "JSF"] } \ No newline at end of file diff --git a/ci/properties/maven.properties.json b/ci/properties/maven.properties.json index 408647017f..be8f7bf636 100644 --- a/ci/properties/maven.properties.json +++ b/ci/properties/maven.properties.json @@ -2,5 +2,5 @@ "name": "Java with Maven", "description": "Build and test a Java project with Apache Maven.", "iconName": "maven", - "categories": ["Java", "Maven", "Spring", "JSF"] + "categories": ["Continuous integration", "Java", "Maven", "Spring", "JSF"] } diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json index c982d17554..32f53069ee 100644 --- a/ci/properties/node.js.properties.json +++ b/ci/properties/node.js.properties.json @@ -2,5 +2,5 @@ "name": "Node.js", "description": "Build and test a Node.js project with npm.", "iconName": "nodejs", - "categories": ["JavaScript", "npm", "React", "Angular"] + "categories": ["Continuous integration", "JavaScript", "npm", "React", "Angular"] } diff --git a/ci/properties/npm-publish.properties.json b/ci/properties/npm-publish.properties.json index 764dbf37bb..9371d7b4c2 100644 --- a/ci/properties/npm-publish.properties.json +++ b/ci/properties/npm-publish.properties.json @@ -2,5 +2,5 @@ "name": "Publish Node.js Package", "description": "Publishes a Node.js package to npm and GitHub Packages.", "iconName": "node-package-transparent", - "categories": ["JavaScript", "npm"] + "categories": ["Continuous integration", "JavaScript", "npm"] } diff --git a/ci/properties/rust.properties.json b/ci/properties/rust.properties.json index 3a6dc02ae1..3e834d9589 100644 --- a/ci/properties/rust.properties.json +++ b/ci/properties/rust.properties.json @@ -2,5 +2,5 @@ "name": "Rust", "description": "Build and test a Rust project with Cargo.", "iconName": "rust", - "categories": ["Rust"] + "categories": ["Continuous integration", "Rust"] } \ No newline at end of file diff --git a/ci/properties/scala.properties.json b/ci/properties/scala.properties.json index a92fc7309a..34dde26dda 100644 --- a/ci/properties/scala.properties.json +++ b/ci/properties/scala.properties.json @@ -2,5 +2,5 @@ "name": "Scala", "description": "Build and test a Scala project with SBT.", "iconName": "scala", - "categories": ["Scala", "Java"] + "categories": ["Continuous integration", "Scala", "Java"] } diff --git a/ci/properties/swift.properties.json b/ci/properties/swift.properties.json index 9efd64515d..b26a264423 100644 --- a/ci/properties/swift.properties.json +++ b/ci/properties/swift.properties.json @@ -2,5 +2,5 @@ "name": "Swift", "description": "Build and test a Swift Package.", "iconName": "swift", - "categories": ["Swift"] + "categories": ["Continuous integration", "Swift"] } diff --git a/ci/properties/webpack.properties.json b/ci/properties/webpack.properties.json index 1e22ccb69c..6d8b1a548a 100644 --- a/ci/properties/webpack.properties.json +++ b/ci/properties/webpack.properties.json @@ -2,5 +2,5 @@ "name": "Webpack", "description": "Build a NodeJS project with npm and webpack.", "iconName": "webpack", - "categories": ["JavaScript", "TypeScript", "npm", "Webpack"] + "categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Webpack"] } From 3623a790cbc3c987b68f2b67b9c6d51a521d78e6 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Sep 2021 05:32:44 +0000 Subject: [PATCH 068/185] Updating GHES workflows --- ci/makefile.yml | 27 ++++++++++++++++++++++++++ ci/properties/makefile.properties.json | 6 ++++++ icons/makefile.svg | 1 + 3 files changed, 34 insertions(+) create mode 100644 ci/makefile.yml create mode 100644 ci/properties/makefile.properties.json create mode 100644 icons/makefile.svg diff --git a/ci/makefile.yml b/ci/makefile.yml new file mode 100644 index 0000000000..eafe622fd5 --- /dev/null +++ b/ci/makefile.yml @@ -0,0 +1,27 @@ +name: Makefile CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: configure + run: ./configure + + - name: Install dependencies + run: make + + - name: Run check + run: make check + + - name: Run distcheck + run: make distcheck diff --git a/ci/properties/makefile.properties.json b/ci/properties/makefile.properties.json new file mode 100644 index 0000000000..93ecf1ebd7 --- /dev/null +++ b/ci/properties/makefile.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Build projects with Make", + "description": "Build and test a project using Make.", + "iconName": "makefile", + "categories": ["Makefile"] +} diff --git a/icons/makefile.svg b/icons/makefile.svg new file mode 100644 index 0000000000..694ad2e226 --- /dev/null +++ b/icons/makefile.svg @@ -0,0 +1 @@ + \ No newline at end of file From 4f21509afc1ddf49d9b800691248194ce5eba706 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Sep 2021 05:48:19 +0000 Subject: [PATCH 069/185] Updating GHES workflows --- ci/{grunt.yml => npm-grunt.yml} | 0 ci/{gulp.yml => npm-gulp.yml} | 0 .../{grunt.properties.json => npm-grunt.properties.json} | 0 ci/properties/{gulp.properties.json => npm-gulp.properties.json} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename ci/{grunt.yml => npm-grunt.yml} (100%) rename ci/{gulp.yml => npm-gulp.yml} (100%) rename ci/properties/{grunt.properties.json => npm-grunt.properties.json} (100%) rename ci/properties/{gulp.properties.json => npm-gulp.properties.json} (100%) diff --git a/ci/grunt.yml b/ci/npm-grunt.yml similarity index 100% rename from ci/grunt.yml rename to ci/npm-grunt.yml diff --git a/ci/gulp.yml b/ci/npm-gulp.yml similarity index 100% rename from ci/gulp.yml rename to ci/npm-gulp.yml diff --git a/ci/properties/grunt.properties.json b/ci/properties/npm-grunt.properties.json similarity index 100% rename from ci/properties/grunt.properties.json rename to ci/properties/npm-grunt.properties.json diff --git a/ci/properties/gulp.properties.json b/ci/properties/npm-gulp.properties.json similarity index 100% rename from ci/properties/gulp.properties.json rename to ci/properties/npm-gulp.properties.json From 2433143cca99a53b69011eeedb3f811d4ff24cd9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Sep 2021 05:49:38 +0000 Subject: [PATCH 070/185] Updating GHES workflows --- ci/properties/dotnet.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/dotnet.properties.json b/ci/properties/dotnet.properties.json index d4f6eb2292..1a466042c3 100644 --- a/ci/properties/dotnet.properties.json +++ b/ci/properties/dotnet.properties.json @@ -2,5 +2,5 @@ "name": ".NET", "description": "Build and test a .NET or ASP.NET Core project.", "iconName": "dotnet", - "categories": ["Continuous integration", "C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET"] + "categories": ["Continuous integration", "C#", "F#", "Visual Basic", "ASP", "ASP.NET", ".NET", "AspNetCore", "DotNetConsole"] } From 8be9ca995193143a70bd540341eb12d852ba44f5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Sep 2021 06:22:17 +0000 Subject: [PATCH 071/185] Updating GHES workflows --- ci/properties/makefile.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/makefile.properties.json b/ci/properties/makefile.properties.json index 93ecf1ebd7..209bf7025d 100644 --- a/ci/properties/makefile.properties.json +++ b/ci/properties/makefile.properties.json @@ -2,5 +2,5 @@ "name": "Build projects with Make", "description": "Build and test a project using Make.", "iconName": "makefile", - "categories": ["Makefile"] + "categories": ["Continuous integration", "Makefile"] } From 1d2cedfc3f509926caf841d728a49435002bb3ac Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 21 Sep 2021 08:05:52 +0000 Subject: [PATCH 072/185] Updating GHES workflows --- ci/properties/node.js.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json index 32f53069ee..7f68d8842d 100644 --- a/ci/properties/node.js.properties.json +++ b/ci/properties/node.js.properties.json @@ -2,5 +2,5 @@ "name": "Node.js", "description": "Build and test a Node.js project with npm.", "iconName": "nodejs", - "categories": ["Continuous integration", "JavaScript", "npm", "React", "Angular"] + "categories": ["Continuous integration", "JavaScript", "npm", "React", "Angular", "Vue"] } From 345e123521871dfb3c001407bfb179465b685359 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 23 Sep 2021 05:00:12 +0000 Subject: [PATCH 073/185] Updating GHES workflows --- ci/objective-c-xcode.yml | 30 +++++++++++++++++++ .../objective-c-xcode.properties.json | 6 ++++ 2 files changed, 36 insertions(+) create mode 100644 ci/objective-c-xcode.yml create mode 100644 ci/properties/objective-c-xcode.properties.json diff --git a/ci/objective-c-xcode.yml b/ci/objective-c-xcode.yml new file mode 100644 index 0000000000..db009b0f17 --- /dev/null +++ b/ci/objective-c-xcode.yml @@ -0,0 +1,30 @@ +name: Xcode - Build and Analyze + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + name: Build and analyse default scheme using xcodebuild command + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set Default Scheme + run: | + scheme_list=$(xcodebuild -list -json | tr -d "\n") + default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") + echo $default | cat >default + echo Using default scheme: $default + - name: Build + env: + scheme: ${{ 'default' }} + run: | + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]} diff --git a/ci/properties/objective-c-xcode.properties.json b/ci/properties/objective-c-xcode.properties.json new file mode 100644 index 0000000000..e6068feb00 --- /dev/null +++ b/ci/properties/objective-c-xcode.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Xcode - Build and Analyze", + "description": "Build Xcode project using xcodebuild", + "iconName": "xcode", + "categories": ["Continuous integration", "Xcode", "Objective-C"] +} From f01e7eb9b0bbab9f4e267218fb7053790c295a80 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 27 Oct 2021 14:08:44 +0000 Subject: [PATCH 074/185] Updating GHES workflows --- code-scanning/codeql.yml | 3 +-- code-scanning/properties/codeql.properties.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index b32675e536..57b4b69ad9 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -34,8 +34,7 @@ jobs: matrix: language: [ $detected-codeql-languages ] # CodeQL supports [ $supported-codeql-languages ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed + # Learn more about CodeQL language support at https://git.io/codeql-language-support steps: - name: Checkout repository diff --git a/code-scanning/properties/codeql.properties.json b/code-scanning/properties/codeql.properties.json index cb9305a9a1..ddb4627f49 100644 --- a/code-scanning/properties/codeql.properties.json +++ b/code-scanning/properties/codeql.properties.json @@ -1,7 +1,7 @@ { "name": "CodeQL Analysis", "creator": "GitHub", - "description": "Security analysis from GitHub for C, C++, C#, Java, JavaScript, TypeScript, Python, and Go developers.", + "description": "Security analysis from GitHub for C, C++, C#, Go, Java, JavaScript, TypeScript, Python, and Ruby developers.", "iconName": "octicon mark-github", - "categories": ["Code Scanning", "C", "C#", "C++", "Go", "Java", "JavaScript", "TypeScript", "Python"] + "categories": ["Code Scanning", "C", "C++", "C#", "Go", "Java", "JavaScript", "TypeScript", "Python", "Ruby"] } From 337d7a06ffb15cc01af3511173ef18785526f122 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 25 Nov 2021 10:15:57 +0000 Subject: [PATCH 075/185] Updating GHES workflows --- code-scanning/detekt.yml | 118 ++++++++++++++++++ .../properties/detekt.properties.json | 9 ++ icons/detekt.svg | 32 +++++ 3 files changed, 159 insertions(+) create mode 100644 code-scanning/detekt.yml create mode 100644 code-scanning/properties/detekt.properties.json create mode 100644 icons/detekt.svg diff --git a/code-scanning/detekt.yml b/code-scanning/detekt.yml new file mode 100644 index 0000000000..a8610c32c4 --- /dev/null +++ b/code-scanning/detekt.yml @@ -0,0 +1,118 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow performs a static analysis of your Kotlin source code using +# Detekt. +# +# Scans are triggered: +# 1. On every push to default and protected branches +# 2. On every Pull Request targeting the default branch +# 3. On a weekly schedule +# 4. Manually, on demand, via the "workflow_dispatch" event +# +# The workflow should work with no modifications, but you might like to use a +# later version of the Detekt CLI by modifing the $DETEKT_RELEASE_TAG +# environment variable. +name: Scan with Detekt + +on: + # Triggers the workflow on push or pull request events but only for default and protected branches + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +env: + # Release tag associated with version of Detekt to be installed + # SARIF support (required for this workflow) was introduced in Detekt v1.15.0 + DETEKT_RELEASE_TAG: v1.15.0 + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "scan" + scan: + name: Scan + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Gets the download URL associated with the $DETEKT_RELEASE_TAG + - name: Get Detekt download URL + id: detekt_info + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh api graphql --field tagName=$DETEKT_RELEASE_TAG --raw-field query=' + query getReleaseAssetDownloadUrl($tagName: String!) { + repository(name: "detekt", owner: "detekt") { + release(tagName: $tagName) { + releaseAssets(name: "detekt", first: 1) { + nodes { + downloadUrl + } + } + tagCommit { + oid + } + } + } + } + ' 1> gh_response.json + + DETEKT_RELEASE_SHA=$(jq --raw-output '.data.repository.release.releaseAssets.tagCommit.oid' gh_response.json) + if [ $DETEKT_RELEASE_SHA != "37f0a1d006977512f1f216506cd695039607c3e5" ]; then + echo "Release tag doesn't match expected commit SHA" + exit 1 + fi + + DETEKT_DOWNLOAD_URL=$(jq --raw-output '.data.repository.release.releaseAssets.nodes[0].downloadUrl' gh_response.json) + echo "::set-output name=download_url::$DETEKT_DOWNLOAD_URL" + + # Sets up the detekt cli + - name: Setup Detekt + run: | + dest=$( mktemp -d ) + curl --request GET \ + --url ${{ steps.detekt_info.outputs.download_url }} \ + --silent \ + --location \ + --output $dest/detekt + chmod a+x $dest/detekt + echo $dest >> $GITHUB_PATH + + # Performs static analysis using Detekt + - name: Run Detekt + continue-on-error: true + run: | + detekt --input ${{ github.workspace }} --report sarif:${{ github.workspace }}/detekt.sarif.json + + # Modifies the SARIF output produced by Detekt so that absolute URIs are relative + # This is so we can easily map results onto their source files + # This can be removed once relative URI support lands in Detekt: https://git.io/JLBbA + - name: Make artifact location URIs relative + continue-on-error: true + run: | + echo "$( + jq \ + --arg github_workspace ${{ github.workspace }} \ + '. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \ + ${{ github.workspace }}/detekt.sarif.json + )" > ${{ github.workspace }}/detekt.sarif.json + + # Uploads results to GitHub repository using the upload-sarif action + - uses: github/codeql-action/upload-sarif@v1 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: ${{ github.workspace }}/detekt.sarif.json + checkout_path: ${{ github.workspace }} diff --git a/code-scanning/properties/detekt.properties.json b/code-scanning/properties/detekt.properties.json new file mode 100644 index 0000000000..d51a6ad75a --- /dev/null +++ b/code-scanning/properties/detekt.properties.json @@ -0,0 +1,9 @@ +{ + "name": "Detekt", + "creator": "Detekt", + "description": "Static code analysis for Kotlin", + "iconName": "detekt", + "categories": ["Code Scanning", "Kotlin"] +} + + \ No newline at end of file diff --git a/icons/detekt.svg b/icons/detekt.svg new file mode 100644 index 0000000000..152617078c --- /dev/null +++ b/icons/detekt.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From e56f0a3e95820a5bcc77646fe697decc9ef990b5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 1 Dec 2021 19:39:01 +0000 Subject: [PATCH 076/185] Updating GHES workflows --- ci/npm-publish-github-packages.yml | 36 +++++++++++++++++++ ci/npm-publish.yml | 21 ++--------- ...pm-publish-github-packages.properties.json | 6 ++++ ci/properties/npm-publish.properties.json | 2 +- 4 files changed, 45 insertions(+), 20 deletions(-) create mode 100644 ci/npm-publish-github-packages.yml create mode 100644 ci/properties/npm-publish-github-packages.properties.json diff --git a/ci/npm-publish-github-packages.yml b/ci/npm-publish-github-packages.yml new file mode 100644 index 0000000000..09ff0b3cc7 --- /dev/null +++ b/ci/npm-publish-github-packages.yml @@ -0,0 +1,36 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: Node.js Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16 + - run: npm ci + - run: npm test + + publish-gpr: + needs: build + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16 + registry-url: $registry-url(npm) + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 025976d6e2..ef8c6905aa 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 16 - run: npm ci - run: npm test @@ -25,26 +25,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} - - publish-gpr: - needs: build - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - registry-url: $registry-url(npm) - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/ci/properties/npm-publish-github-packages.properties.json b/ci/properties/npm-publish-github-packages.properties.json new file mode 100644 index 0000000000..180b73aaeb --- /dev/null +++ b/ci/properties/npm-publish-github-packages.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Publish Node.js Package to GitHub Packages", + "description": "Publishes a Node.js package to GitHub Packages.", + "iconName": "node-package-transparent", + "categories": ["Continuous integration", "JavaScript", "npm"] +} diff --git a/ci/properties/npm-publish.properties.json b/ci/properties/npm-publish.properties.json index 9371d7b4c2..cc2c707177 100644 --- a/ci/properties/npm-publish.properties.json +++ b/ci/properties/npm-publish.properties.json @@ -1,6 +1,6 @@ { "name": "Publish Node.js Package", - "description": "Publishes a Node.js package to npm and GitHub Packages.", + "description": "Publishes a Node.js package to npm.", "iconName": "node-package-transparent", "categories": ["Continuous integration", "JavaScript", "npm"] } From f0ae974e62288e89593144574998c913c93dd8cb Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 2 Dec 2021 03:51:52 +0000 Subject: [PATCH 077/185] Updating GHES workflows --- ci/cmake.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/cmake.yml b/ci/cmake.yml index 16341407df..6c858b9198 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -12,9 +12,8 @@ env: jobs: build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. + # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. + # You can convert this to a matrix build if you need cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix runs-on: ubuntu-latest From 726a1fde56f03bae260f70e4cd7d9b8a2b15e088 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 2 Dec 2021 22:23:16 +0000 Subject: [PATCH 078/185] Updating GHES workflows --- ci/gradle-publish.yml | 37 -------------------- ci/gradle.yml | 28 --------------- ci/properties/gradle-publish.properties.json | 6 ---- ci/properties/gradle.properties.json | 6 ---- icons/gradle.svg | 1 - 5 files changed, 78 deletions(-) delete mode 100644 ci/gradle-publish.yml delete mode 100644 ci/gradle.yml delete mode 100644 ci/properties/gradle-publish.properties.json delete mode 100644 ci/properties/gradle.properties.json delete mode 100644 icons/gradle.svg diff --git a/ci/gradle-publish.yml b/ci/gradle-publish.yml deleted file mode 100644 index a74a1ce2eb..0000000000 --- a/ci/gradle-publish.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle - -name: Gradle Package - -on: - release: - types: [created] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file - - - name: Build with Gradle - run: gradle build - - # The USERNAME and TOKEN need to correspond to the credentials environment variables used in - # the publishing section of your build.gradle - - name: Publish to GitHub Packages - run: gradle publish - env: - USERNAME: ${{ github.actor }} - TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/ci/gradle.yml b/ci/gradle.yml deleted file mode 100644 index 5ecabbaa11..0000000000 --- a/ci/gradle.yml +++ /dev/null @@ -1,28 +0,0 @@ -# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle - -name: Java CI with Gradle - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - cache: gradle - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build diff --git a/ci/properties/gradle-publish.properties.json b/ci/properties/gradle-publish.properties.json deleted file mode 100644 index 0155310cb2..0000000000 --- a/ci/properties/gradle-publish.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Publish Java Package with Gradle", - "description": "Build a Java Package using Gradle and publish to GitHub Packages.", - "iconName": "gradle", - "categories": ["Continuous integration", "Java", "Gradle", "Spring", "JSF"] -} \ No newline at end of file diff --git a/ci/properties/gradle.properties.json b/ci/properties/gradle.properties.json deleted file mode 100644 index 47d1ddb3ff..0000000000 --- a/ci/properties/gradle.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Java with Gradle", - "description": "Build and test a Java project using a Gradle wrapper script.", - "iconName": "gradle", - "categories": ["Continuous integration", "Java", "Gradle", "Spring", "JSF"] -} diff --git a/icons/gradle.svg b/icons/gradle.svg deleted file mode 100644 index 504b09033d..0000000000 --- a/icons/gradle.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From b9d98964bb47ea88368ac99bff1ef562c967a2ea Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 14 Jan 2022 23:06:01 +0000 Subject: [PATCH 079/185] Updating GHES workflows --- ci/android.yml | 2 +- ci/ant.yml | 2 +- ci/maven-publish.yml | 2 +- ci/maven.yml | 2 +- ci/scala.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 3037b9ff1b..f289bd5c73 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -17,7 +17,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adopt' + distribution: 'temurin' cache: gradle - name: Grant execute permission for gradlew diff --git a/ci/ant.yml b/ci/ant.yml index 655a94c90e..0205d40359 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -20,6 +20,6 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adopt' + distribution: 'temurin' - name: Build with Ant run: ant -noinput -buildfile build.xml diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index 18dd937d4e..319f9a1194 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -21,7 +21,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adopt' + distribution: 'temurin' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/ci/maven.yml b/ci/maven.yml index ac3b6de431..f301fe093e 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adopt' + distribution: 'temurin' cache: maven - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/ci/scala.yml b/ci/scala.yml index 4a3c112725..af6b2ed0bc 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -17,6 +17,6 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' - distribution: 'adopt' + distribution: 'temurin' - name: Run tests run: sbt test From 22ab3ffdb206e6b48832cb5a156ef494e36cda58 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 20 Jan 2022 03:31:26 +0000 Subject: [PATCH 080/185] Updating GHES workflows --- ci/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 89b24fed53..8d1b9c7001 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,4 +1,4 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions name: Node.js CI From 5625253e4f4b451a00571918e05d499438adc1fe Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 27 Jan 2022 04:57:54 +0000 Subject: [PATCH 081/185] Updating GHES workflows --- ci/node.js.yml | 31 --------------------------- ci/properties/node.js.properties.json | 6 ------ icons/nodejs.svg | 1 - 3 files changed, 38 deletions(-) delete mode 100644 ci/node.js.yml delete mode 100644 ci/properties/node.js.properties.json delete mode 100644 icons/nodejs.svg diff --git a/ci/node.js.yml b/ci/node.js.yml deleted file mode 100644 index 8d1b9c7001..0000000000 --- a/ci/node.js.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x, 14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json deleted file mode 100644 index 7f68d8842d..0000000000 --- a/ci/properties/node.js.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Node.js", - "description": "Build and test a Node.js project with npm.", - "iconName": "nodejs", - "categories": ["Continuous integration", "JavaScript", "npm", "React", "Angular", "Vue"] -} diff --git a/icons/nodejs.svg b/icons/nodejs.svg deleted file mode 100644 index 493f39d5f0..0000000000 --- a/icons/nodejs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From f982942d7afd3fc7d11d4eff3b08a4934b649a79 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 27 Jan 2022 04:59:07 +0000 Subject: [PATCH 082/185] Updating GHES workflows --- ci/node.js.yml | 31 +++++++++++++++++++++++++++ ci/properties/node.js.properties.json | 6 ++++++ icons/nodejs.svg | 1 + 3 files changed, 38 insertions(+) create mode 100644 ci/node.js.yml create mode 100644 ci/properties/node.js.properties.json create mode 100644 icons/nodejs.svg diff --git a/ci/node.js.yml b/ci/node.js.yml new file mode 100644 index 0000000000..8d1b9c7001 --- /dev/null +++ b/ci/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json new file mode 100644 index 0000000000..7f68d8842d --- /dev/null +++ b/ci/properties/node.js.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Node.js", + "description": "Build and test a Node.js project with npm.", + "iconName": "nodejs", + "categories": ["Continuous integration", "JavaScript", "npm", "React", "Angular", "Vue"] +} diff --git a/icons/nodejs.svg b/icons/nodejs.svg new file mode 100644 index 0000000000..493f39d5f0 --- /dev/null +++ b/icons/nodejs.svg @@ -0,0 +1 @@ + \ No newline at end of file From 2fe221019a1d3a3a71a1145649f4475b38d6bdb1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 11 Feb 2022 17:02:43 +0000 Subject: [PATCH 083/185] Updating GHES workflows --- code-scanning/detekt.yml | 118 ------------------ .../properties/detekt.properties.json | 9 -- icons/detekt.svg | 32 ----- 3 files changed, 159 deletions(-) delete mode 100644 code-scanning/detekt.yml delete mode 100644 code-scanning/properties/detekt.properties.json delete mode 100644 icons/detekt.svg diff --git a/code-scanning/detekt.yml b/code-scanning/detekt.yml deleted file mode 100644 index a8610c32c4..0000000000 --- a/code-scanning/detekt.yml +++ /dev/null @@ -1,118 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow performs a static analysis of your Kotlin source code using -# Detekt. -# -# Scans are triggered: -# 1. On every push to default and protected branches -# 2. On every Pull Request targeting the default branch -# 3. On a weekly schedule -# 4. Manually, on demand, via the "workflow_dispatch" event -# -# The workflow should work with no modifications, but you might like to use a -# later version of the Detekt CLI by modifing the $DETEKT_RELEASE_TAG -# environment variable. -name: Scan with Detekt - -on: - # Triggers the workflow on push or pull request events but only for default and protected branches - push: - branches: [ $default-branch, $protected-branches ] - pull_request: - branches: [ $default-branch ] - schedule: - - cron: $cron-weekly - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -env: - # Release tag associated with version of Detekt to be installed - # SARIF support (required for this workflow) was introduced in Detekt v1.15.0 - DETEKT_RELEASE_TAG: v1.15.0 - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "scan" - scan: - name: Scan - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Gets the download URL associated with the $DETEKT_RELEASE_TAG - - name: Get Detekt download URL - id: detekt_info - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh api graphql --field tagName=$DETEKT_RELEASE_TAG --raw-field query=' - query getReleaseAssetDownloadUrl($tagName: String!) { - repository(name: "detekt", owner: "detekt") { - release(tagName: $tagName) { - releaseAssets(name: "detekt", first: 1) { - nodes { - downloadUrl - } - } - tagCommit { - oid - } - } - } - } - ' 1> gh_response.json - - DETEKT_RELEASE_SHA=$(jq --raw-output '.data.repository.release.releaseAssets.tagCommit.oid' gh_response.json) - if [ $DETEKT_RELEASE_SHA != "37f0a1d006977512f1f216506cd695039607c3e5" ]; then - echo "Release tag doesn't match expected commit SHA" - exit 1 - fi - - DETEKT_DOWNLOAD_URL=$(jq --raw-output '.data.repository.release.releaseAssets.nodes[0].downloadUrl' gh_response.json) - echo "::set-output name=download_url::$DETEKT_DOWNLOAD_URL" - - # Sets up the detekt cli - - name: Setup Detekt - run: | - dest=$( mktemp -d ) - curl --request GET \ - --url ${{ steps.detekt_info.outputs.download_url }} \ - --silent \ - --location \ - --output $dest/detekt - chmod a+x $dest/detekt - echo $dest >> $GITHUB_PATH - - # Performs static analysis using Detekt - - name: Run Detekt - continue-on-error: true - run: | - detekt --input ${{ github.workspace }} --report sarif:${{ github.workspace }}/detekt.sarif.json - - # Modifies the SARIF output produced by Detekt so that absolute URIs are relative - # This is so we can easily map results onto their source files - # This can be removed once relative URI support lands in Detekt: https://git.io/JLBbA - - name: Make artifact location URIs relative - continue-on-error: true - run: | - echo "$( - jq \ - --arg github_workspace ${{ github.workspace }} \ - '. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \ - ${{ github.workspace }}/detekt.sarif.json - )" > ${{ github.workspace }}/detekt.sarif.json - - # Uploads results to GitHub repository using the upload-sarif action - - uses: github/codeql-action/upload-sarif@v1 - with: - # Path to SARIF file relative to the root of the repository - sarif_file: ${{ github.workspace }}/detekt.sarif.json - checkout_path: ${{ github.workspace }} diff --git a/code-scanning/properties/detekt.properties.json b/code-scanning/properties/detekt.properties.json deleted file mode 100644 index d51a6ad75a..0000000000 --- a/code-scanning/properties/detekt.properties.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "Detekt", - "creator": "Detekt", - "description": "Static code analysis for Kotlin", - "iconName": "detekt", - "categories": ["Code Scanning", "Kotlin"] -} - - \ No newline at end of file diff --git a/icons/detekt.svg b/icons/detekt.svg deleted file mode 100644 index 152617078c..0000000000 --- a/icons/detekt.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 1cddd5754cd8689c562cc9f6a8a8c9e6e56432df Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 28 Mar 2022 17:11:12 +0000 Subject: [PATCH 084/185] Updating GHES workflows --- automation/stale.yml | 2 +- ci/ada.yml | 2 +- ci/android.yml | 4 ++-- ci/ant.yml | 4 ++-- ci/blank.yml | 2 +- ci/c-cpp.yml | 2 +- ci/clojure.yml | 2 +- ci/cmake.yml | 2 +- ci/crystal.yml | 2 +- ci/docker-image.yml | 2 +- ci/dotnet.yml | 4 ++-- ci/erlang.yml | 2 +- ci/go.yml | 4 ++-- ci/ios.yml | 2 +- ci/jekyll.yml | 2 +- ci/makefile.yml | 2 +- ci/maven-publish.yml | 4 ++-- ci/maven.yml | 4 ++-- ci/node.js.yml | 4 ++-- ci/npm-grunt.yml | 4 ++-- ci/npm-gulp.yml | 4 ++-- ci/npm-publish-github-packages.yml | 8 ++++---- ci/npm-publish.yml | 8 ++++---- ci/objective-c-xcode.yml | 2 +- ci/rust.yml | 2 +- ci/scala.yml | 4 ++-- ci/swift.yml | 2 +- ci/webpack.yml | 4 ++-- code-scanning/codeql.yml | 2 +- 29 files changed, 46 insertions(+), 46 deletions(-) diff --git a/automation/stale.yml b/automation/stale.yml index ff88dc0809..1322eafd69 100644 --- a/automation/stale.yml +++ b/automation/stale.yml @@ -18,7 +18,7 @@ jobs: pull-requests: write steps: - - uses: actions/stale@v3 + - uses: actions/stale@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue message' diff --git a/ci/ada.yml b/ci/ada.yml index a27902a5ed..7e94b3855e 100644 --- a/ci/ada.yml +++ b/ci/ada.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up GNAT toolchain run: > diff --git a/ci/android.yml b/ci/android.yml index f289bd5c73..221fca5c90 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' diff --git a/ci/ant.yml b/ci/ant.yml index 0205d40359..16146641ae 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' diff --git a/ci/blank.yml b/ci/blank.yml index 895e5d1d76..607e2cfaeb 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -23,7 +23,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Runs a single command using the runners shell - name: Run a one-line script diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index 88d1497621..14d2eb9c34 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: configure run: ./configure - name: make diff --git a/ci/clojure.yml b/ci/clojure.yml index 098918a1b8..a76631a5dd 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install dependencies run: lein deps - name: Run tests diff --git a/ci/cmake.yml b/ci/cmake.yml index 6c858b9198..6f06f756ca 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. diff --git a/ci/crystal.yml b/ci/crystal.yml index 6552afa563..18cc825acb 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -15,7 +15,7 @@ jobs: image: crystallang/crystal steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install dependencies run: shards install - name: Run tests diff --git a/ci/docker-image.yml b/ci/docker-image.yml index 78532a335a..cc9cd6ee37 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build the Docker image run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index c31cf6857f..5974d4a034 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v2 with: dotnet-version: 5.0.x - name: Restore dependencies diff --git a/ci/erlang.yml b/ci/erlang.yml index 25cb8939e7..20e269fbad 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -16,7 +16,7 @@ jobs: image: erlang:22.0.7 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Compile run: rebar3 compile - name: Run tests diff --git a/ci/go.yml b/ci/go.yml index afff652f99..6f498a6c4c 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -11,10 +11,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.17 diff --git a/ci/ios.yml b/ci/ios.yml index ab92d322ad..5cec5e7648 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n") diff --git a/ci/jekyll.yml b/ci/jekyll.yml index 71920c128d..6a98dea142 100644 --- a/ci/jekyll.yml +++ b/ci/jekyll.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build the site in the jekyll/builder container run: | docker run \ diff --git a/ci/makefile.yml b/ci/makefile.yml index eafe622fd5..0156944cdc 100644 --- a/ci/makefile.yml +++ b/ci/makefile.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: configure run: ./configure diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index 319f9a1194..dab69fef79 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -16,9 +16,9 @@ jobs: packages: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' diff --git a/ci/maven.yml b/ci/maven.yml index f301fe093e..65e0dff20e 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' diff --git a/ci/node.js.yml b/ci/node.js.yml index 8d1b9c7001..87ef0d8f5e 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -20,9 +20,9 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' diff --git a/ci/npm-grunt.yml b/ci/npm-grunt.yml index 8c83cb6237..eda97e1fd7 100644 --- a/ci/npm-grunt.yml +++ b/ci/npm-grunt.yml @@ -15,10 +15,10 @@ jobs: node-version: [12.x, 14.x, 16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/ci/npm-gulp.yml b/ci/npm-gulp.yml index cc5da138f7..504f22ea61 100644 --- a/ci/npm-gulp.yml +++ b/ci/npm-gulp.yml @@ -15,10 +15,10 @@ jobs: node-version: [12.x, 14.x, 16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/ci/npm-publish-github-packages.yml b/ci/npm-publish-github-packages.yml index 09ff0b3cc7..638ccf806c 100644 --- a/ci/npm-publish-github-packages.yml +++ b/ci/npm-publish-github-packages.yml @@ -11,8 +11,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - run: npm ci @@ -25,8 +25,8 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 registry-url: $registry-url(npm) diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index ef8c6905aa..c461c85dd9 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -11,8 +11,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - run: npm ci @@ -22,8 +22,8 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://registry.npmjs.org/ diff --git a/ci/objective-c-xcode.yml b/ci/objective-c-xcode.yml index db009b0f17..13738787b6 100644 --- a/ci/objective-c-xcode.yml +++ b/ci/objective-c-xcode.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n") diff --git a/ci/rust.yml b/ci/rust.yml index 6c82c610fe..d51f1afdb7 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build run: cargo build --verbose - name: Run tests diff --git a/ci/scala.yml b/ci/scala.yml index af6b2ed0bc..ed24363736 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' diff --git a/ci/swift.yml b/ci/swift.yml index df062b53e5..3668fc0be6 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -12,7 +12,7 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build run: swift build -v - name: Run tests diff --git a/ci/webpack.yml b/ci/webpack.yml index 8edb34f4bb..6449fe7a7b 100644 --- a/ci/webpack.yml +++ b/ci/webpack.yml @@ -15,10 +15,10 @@ jobs: node-version: [12.x, 14.x, 16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 57b4b69ad9..cd9a68339a 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL From 3cd1bccb0310a6ac1f3ad36bd18b4407e0525fa1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 30 Mar 2022 09:22:31 +0000 Subject: [PATCH 085/185] Updating GHES workflows --- ci/scala.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/scala.yml b/ci/scala.yml index ed24363736..c985f742af 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ $default-branch ] +permissions: + contents: read + jobs: build: From 51a372807be5193890661621a04ca90b6af3dd88 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 30 Mar 2022 09:50:11 +0000 Subject: [PATCH 086/185] Updating GHES workflows --- ci/erlang.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/erlang.yml b/ci/erlang.yml index 20e269fbad..984b83adf6 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ $default-branch ] +permissions: + contents: read + jobs: build: From 0eadf714083b3f217b8676769ceca73b4d90e40c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 31 Mar 2022 13:39:38 +0000 Subject: [PATCH 087/185] Updating GHES workflows --- code-scanning/codeql.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index cd9a68339a..37109ab2fa 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -42,7 +42,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 From e151dba495459c3bb880f6d2481b28b7cddd5693 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 10 Apr 2022 19:47:24 +0000 Subject: [PATCH 088/185] Updating GHES workflows --- ci/ios.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/ios.yml b/ci/ios.yml index 5cec5e7648..693a7d5ae0 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -26,7 +26,7 @@ jobs: platform: ${{ 'iOS Simulator' }} run: | # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) - device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` @@ -37,7 +37,7 @@ jobs: platform: ${{ 'iOS Simulator' }} run: | # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) - device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` From 0763e02a9d865002c013ecdc6bf674b7bab8bad0 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 13 Apr 2022 05:54:18 +0000 Subject: [PATCH 089/185] Updating GHES workflows --- ci/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/go.yml b/ci/go.yml index 6f498a6c4c..bb3ec96482 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Build run: go build -v ./... From 3b01a31221e520223368a3734fb1a69b88fe31e3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 14 Apr 2022 06:05:23 +0000 Subject: [PATCH 090/185] Updating GHES workflows --- code-scanning/eslint.yml | 49 +++++++++++++++++++ .../properties/eslint.properties.json | 11 +++++ icons/eslint.svg | 1 + 3 files changed, 61 insertions(+) create mode 100644 code-scanning/eslint.yml create mode 100644 code-scanning/properties/eslint.properties.json create mode 100644 icons/eslint.svg diff --git a/code-scanning/eslint.yml b/code-scanning/eslint.yml new file mode 100644 index 0000000000..9067a7d530 --- /dev/null +++ b/code-scanning/eslint.yml @@ -0,0 +1,49 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# ESLint is a tool for identifying and reporting on patterns +# found in ECMAScript/JavaScript code. +# More details at https://github.com/eslint/eslint +# and https://eslint.org + +name: ESLint + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + eslint: + name: Run eslint scanning + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install ESLint + run: | + npm install eslint@8.10.0 + npm install @microsoft/eslint-formatter-sarif@2.1.7 + + - name: Run ESLint + run: npx eslint . + --config .eslintrc.js + --ext .js,.jsx,.ts,.tsx + --format @microsoft/eslint-formatter-sarif + --output-file eslint-results.sarif + continue-on-error: true + + - name: Upload analysis results to GitHub + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: eslint-results.sarif + wait-for-processing: true \ No newline at end of file diff --git a/code-scanning/properties/eslint.properties.json b/code-scanning/properties/eslint.properties.json new file mode 100644 index 0000000000..a84646a82f --- /dev/null +++ b/code-scanning/properties/eslint.properties.json @@ -0,0 +1,11 @@ +{ + "name": "ESLint", + "description": "A tool for identifying and reporting the problems found in ECMAScript/JavaScript code.", + "iconName": "eslint", + "categories": [ + "Code Scanning", + "JavaScript", + "EcmaScript", + "TypeScript" + ] +} \ No newline at end of file diff --git a/icons/eslint.svg b/icons/eslint.svg new file mode 100644 index 0000000000..23964aa103 --- /dev/null +++ b/icons/eslint.svg @@ -0,0 +1 @@ + \ No newline at end of file From 6a203a9f51ba515b1ab32b31b2c18406a1d2043b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 26 Apr 2022 18:52:33 +0000 Subject: [PATCH 091/185] Updating GHES workflows --- code-scanning/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 37109ab2fa..0e57f4b4fb 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -34,7 +34,7 @@ jobs: matrix: language: [ $detected-codeql-languages ] # CodeQL supports [ $supported-codeql-languages ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - name: Checkout repository @@ -56,7 +56,7 @@ jobs: uses: github/codeql-action/autobuild@v2 # ℹ️ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines # and modify them (or add more) to build your code if your project From f5b98487a362a8b21737d2d2de40667b95c91746 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 4 May 2022 05:52:48 +0000 Subject: [PATCH 092/185] Updating GHES workflows --- code-scanning/codeql.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 0e57f4b4fb..a113b5951f 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -48,8 +48,11 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild @@ -58,13 +61,12 @@ jobs: # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - #- run: | - # make bootstrap - # make release + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 From 692f5f05adea8d95f8fcf475db37101baa0ef11b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 20 Jun 2022 06:24:55 +0000 Subject: [PATCH 093/185] Updating GHES workflows --- ci/go-ossf-slsa3-publish.yml | 35 +++++++++++++++++++ .../go-ossf-slsa3-publish.properties.json | 7 ++++ icons/go-ossf-slsa3-publish.svg | 11 ++++++ 3 files changed, 53 insertions(+) create mode 100644 ci/go-ossf-slsa3-publish.yml create mode 100644 ci/properties/go-ossf-slsa3-publish.properties.json create mode 100644 icons/go-ossf-slsa3-publish.svg diff --git a/ci/go-ossf-slsa3-publish.yml b/ci/go-ossf-slsa3-publish.yml new file mode 100644 index 0000000000..09c98c084a --- /dev/null +++ b/ci/go-ossf-slsa3-publish.yml @@ -0,0 +1,35 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow lets you compile your Go project using a SLSA3 compliant builder. +# This workflow will generate a so-called "provenance" file describing the steps +# that were performed to generate the final binary. +# The project is an initiative of the OpenSSF (openssf.org) and is developed at +# https://github.com/slsa-framework/slsa-github-generator. +# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier. +# For more information about SLSA and how it improves the supply-chain, visit slsa.dev. + +name: SLSA Go releaser +on: + workflow_dispatch: + release: + types: [created] + +permissions: read-all + +jobs: + build: + permissions: + id-token: write # To sign. + contents: write # To upload release assets. + actions: read # To read workflow path. + # If you need more configuration options, such as ldflag examples, + # visit https://github.com/slsa-framework/slsa-github-generator#golang-projects. + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.0.0 + with: + # By default, the config file is .slsa-goreleaser.yml in the root directory. + # The format of the config file is described in + # https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file. + go-version: 1.17 diff --git a/ci/properties/go-ossf-slsa3-publish.properties.json b/ci/properties/go-ossf-slsa3-publish.properties.json new file mode 100644 index 0000000000..2d58eaffd4 --- /dev/null +++ b/ci/properties/go-ossf-slsa3-publish.properties.json @@ -0,0 +1,7 @@ +{ + "name": "SLSA Go releaser", + "creator": "Open Source Security Foundation (OpenSSF)", + "description": "Compile your Go project using a SLSA3 compliant builder", + "iconName": "go-ossf-slsa3-publish", + "categories": ["Continuous integration", "Go"] +} diff --git a/icons/go-ossf-slsa3-publish.svg b/icons/go-ossf-slsa3-publish.svg new file mode 100644 index 0000000000..ea7746896d --- /dev/null +++ b/icons/go-ossf-slsa3-publish.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + From f8680514c749950dc3c67703279b512efe4c24de Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 21 Jun 2022 08:42:31 +0000 Subject: [PATCH 094/185] Updating GHES workflows --- ci/scala.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/scala.yml b/ci/scala.yml index c985f742af..6f80a22cff 100644 --- a/ci/scala.yml +++ b/ci/scala.yml @@ -21,5 +21,6 @@ jobs: with: java-version: '11' distribution: 'temurin' + cache: 'sbt' - name: Run tests run: sbt test From 52389f777006073426d5e1641098c50beccead6b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 22 Jun 2022 11:45:41 +0000 Subject: [PATCH 095/185] Updating GHES workflows --- ci/go-ossf-slsa3-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/go-ossf-slsa3-publish.yml b/ci/go-ossf-slsa3-publish.yml index 09c98c084a..3f1b732627 100644 --- a/ci/go-ossf-slsa3-publish.yml +++ b/ci/go-ossf-slsa3-publish.yml @@ -27,7 +27,7 @@ jobs: actions: read # To read workflow path. # If you need more configuration options, such as ldflag examples, # visit https://github.com/slsa-framework/slsa-github-generator#golang-projects. - uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.0.0 + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.1.1 with: # By default, the config file is .slsa-goreleaser.yml in the root directory. # The format of the config file is described in From 50fbfabb49d4b66f1d0564fc379d9f78baaa1e97 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 18 Jul 2022 12:25:02 +0000 Subject: [PATCH 096/185] Updating GHES workflows --- ci/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index 5974d4a034..a8eccabbbe 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v2 with: - dotnet-version: 5.0.x + dotnet-version: 6.0.x - name: Restore dependencies run: dotnet restore - name: Build From 8f1e64a8a603d16366447bff5cb6e666378d6413 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 20 Jul 2022 11:47:44 +0000 Subject: [PATCH 097/185] Updating GHES workflows --- ci/go-ossf-slsa3-publish.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ci/go-ossf-slsa3-publish.yml b/ci/go-ossf-slsa3-publish.yml index 3f1b732627..a7388752f0 100644 --- a/ci/go-ossf-slsa3-publish.yml +++ b/ci/go-ossf-slsa3-publish.yml @@ -20,16 +20,19 @@ on: permissions: read-all jobs: + # ======================================================================================================================================== + # Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project. + # See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file + #========================================================================================================================================= build: permissions: id-token: write # To sign. contents: write # To upload release assets. actions: read # To read workflow path. - # If you need more configuration options, such as ldflag examples, - # visit https://github.com/slsa-framework/slsa-github-generator#golang-projects. - uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.1.1 + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.0 with: - # By default, the config file is .slsa-goreleaser.yml in the root directory. - # The format of the config file is described in - # https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file. go-version: 1.17 + # ============================================================================================================= + # Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects + # ============================================================================================================= + From 876c20705a0c2f05bfe8ac0c6a6b451a82e749e3 Mon Sep 17 00:00:00 2001 From: Jess Bees Date: Wed, 24 Aug 2022 14:43:15 -0400 Subject: [PATCH 098/185] Add pages workflows --- icons/gatsby.svg | 7 ++ icons/html.svg | 1 + icons/hugo.svg | 9 ++ icons/jekyll-tube.svg | 1 + icons/nextjs.svg | 3 + icons/nuxtjs.svg | 4 + pages/gatsby.yml | 96 +++++++++++++++++++ pages/hugo.yml | 67 +++++++++++++ pages/jekyll-gh-pages.yml | 50 ++++++++++ pages/jekyll.yml | 53 ++++++++++ pages/nextjs.yml | 95 ++++++++++++++++++ pages/nuxtjs.yml | 90 +++++++++++++++++ pages/properties/gatsby.properties.json | 7 ++ pages/properties/hugo.properties.json | 7 ++ .../jekyll-gh-pages.properties.json | 7 ++ pages/properties/jekyll.properties.json | 7 ++ pages/properties/nextjs.properties.json | 7 ++ pages/properties/nuxtjs.properties.json | 7 ++ pages/properties/static.properties.json | 6 ++ pages/static.yml | 42 ++++++++ 20 files changed, 566 insertions(+) create mode 100644 icons/gatsby.svg create mode 100644 icons/html.svg create mode 100644 icons/hugo.svg create mode 100644 icons/jekyll-tube.svg create mode 100644 icons/nextjs.svg create mode 100644 icons/nuxtjs.svg create mode 100644 pages/gatsby.yml create mode 100644 pages/hugo.yml create mode 100644 pages/jekyll-gh-pages.yml create mode 100644 pages/jekyll.yml create mode 100644 pages/nextjs.yml create mode 100644 pages/nuxtjs.yml create mode 100644 pages/properties/gatsby.properties.json create mode 100644 pages/properties/hugo.properties.json create mode 100644 pages/properties/jekyll-gh-pages.properties.json create mode 100644 pages/properties/jekyll.properties.json create mode 100644 pages/properties/nextjs.properties.json create mode 100644 pages/properties/nuxtjs.properties.json create mode 100644 pages/properties/static.properties.json create mode 100644 pages/static.yml diff --git a/icons/gatsby.svg b/icons/gatsby.svg new file mode 100644 index 0000000000..5578b06cb2 --- /dev/null +++ b/icons/gatsby.svg @@ -0,0 +1,7 @@ + + + Gatsby + + + + diff --git a/icons/html.svg b/icons/html.svg new file mode 100644 index 0000000000..b7c6bb99c2 --- /dev/null +++ b/icons/html.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/hugo.svg b/icons/hugo.svg new file mode 100644 index 0000000000..ea72a6f51a --- /dev/null +++ b/icons/hugo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/icons/jekyll-tube.svg b/icons/jekyll-tube.svg new file mode 100644 index 0000000000..89dd55dce0 --- /dev/null +++ b/icons/jekyll-tube.svg @@ -0,0 +1 @@ + diff --git a/icons/nextjs.svg b/icons/nextjs.svg new file mode 100644 index 0000000000..c45d6e63fb --- /dev/null +++ b/icons/nextjs.svg @@ -0,0 +1,3 @@ + + + diff --git a/icons/nuxtjs.svg b/icons/nuxtjs.svg new file mode 100644 index 0000000000..bebded37c0 --- /dev/null +++ b/icons/nuxtjs.svg @@ -0,0 +1,4 @@ + + + + diff --git a/pages/gatsby.yml b/pages/gatsby.yml new file mode 100644 index 0000000000..9cdf3fc930 --- /dev/null +++ b/pages/gatsby.yml @@ -0,0 +1,96 @@ +# Sample workflow for building and deploying a Gatsby site to GitHub Pages +# +# To get started with Gatsby see: https://www.gatsbyjs.com/docs/quick-start/ +# +name: Deploy Gatsby site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "::set-output name=manager::yarn" + echo "::set-output name=command::install" + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "::set-output name=manager::npm" + echo "::set-output name=command::ci" + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + id: pages + uses: actions/configure-pages@v1 + with: + # Automatically inject pathPrefix in your Gatsby configuration file. + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: gatsby + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + public + .cache + key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }} + restore-keys: | + ${{ runner.os }}-gatsby-build- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build with Gatsby + env: + PREFIX_PATHS: 'true' + run: ${{ steps.detect-package-manager.outputs.manager }} run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/hugo.yml b/pages/hugo.yml new file mode 100644 index 0000000000..f716508996 --- /dev/null +++ b/pages/hugo.yml @@ -0,0 +1,67 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +# +name: Deploy Hugo site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.99.0 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Setup Pages + id: pages + uses: actions/configure-pages@v1 + - name: Build with Hugo + run: | + hugo \ + --minify \ + --baseURL ${{ steps.pages.outputs.base_url }} + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml new file mode 100644 index 0000000000..7ee1e972ca --- /dev/null +++ b/pages/jekyll-gh-pages.yml @@ -0,0 +1,50 @@ +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll with GitHub Pages dependencies preinstalled + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v1 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/jekyll.yml b/pages/jekyll.yml new file mode 100644 index 0000000000..05c876114d --- /dev/null +++ b/pages/jekyll.yml @@ -0,0 +1,53 @@ +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - name: Setup Pages + id: pages + uses: actions/configure-pages@v1 + - run: bundle exec jekyll build --baseurl ${{ steps.pages.outputs.base_path }} # defaults output to '/_site' + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/nextjs.yml b/pages/nextjs.yml new file mode 100644 index 0000000000..79a1cc89f8 --- /dev/null +++ b/pages/nextjs.yml @@ -0,0 +1,95 @@ +# Sample workflow for building and deploying a Next.js site to GitHub Pages +# +# To get started with Next.js see: https://nextjs.org/docs/getting-started +# +name: Deploy Next.js site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "::set-output name=manager::yarn" + echo "::set-output name=command::install" + echo "::set-output name=runner::yarn" + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "::set-output name=manager::npm" + echo "::set-output name=command::ci" + echo "::set-output name=runner::npx --no-install" + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + id: pages + uses: actions/configure-pages@v1 + with: + # Automatically inject basePath in your Next.js configuration file and disable + # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: next + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + .next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Static HTML export with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next export + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./out + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml new file mode 100644 index 0000000000..87c1201bc5 --- /dev/null +++ b/pages/nuxtjs.yml @@ -0,0 +1,90 @@ +# Sample workflow for building and deploying a Nuxt site to GitHub Pages +# +# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation +# +name: Deploy Nuxt site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "::set-output name=manager::yarn" + echo "::set-output name=command::install" + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "::set-output name=manager::npm" + echo "::set-output name=command::ci" + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + id: pages + uses: actions/configure-pages@v1 + with: + # Automatically inject router.base in your Nuxt configuration file and set + # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: nuxt + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + dist + .nuxt + key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} + restore-keys: | + ${{ runner.os }}-nuxt-build- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Static HTML export with Nuxt + run: ${{ steps.detect-package-manager.outputs.manager }} run generate + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./dist + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/properties/gatsby.properties.json b/pages/properties/gatsby.properties.json new file mode 100644 index 0000000000..7d82424e63 --- /dev/null +++ b/pages/properties/gatsby.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Gatsby", + "creator": "GitHub Actions", + "description": "Package a Gatsby site.", + "iconName": "gatsby", + "categories": ["Pages"] +} \ No newline at end of file diff --git a/pages/properties/hugo.properties.json b/pages/properties/hugo.properties.json new file mode 100644 index 0000000000..1fa902c954 --- /dev/null +++ b/pages/properties/hugo.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Hugo", + "creator": "GitHub Actions", + "description": "Package a Hugo site.", + "iconName": "hugo", + "categories": ["Pages"] +} \ No newline at end of file diff --git a/pages/properties/jekyll-gh-pages.properties.json b/pages/properties/jekyll-gh-pages.properties.json new file mode 100644 index 0000000000..6f278c8d42 --- /dev/null +++ b/pages/properties/jekyll-gh-pages.properties.json @@ -0,0 +1,7 @@ +{ + "name": "GitHub Pages Jekyll", + "creator": "GitHub Actions", + "description": "Package a Jekyll site with GitHub Pages dependencies preinstalled.", + "iconName": "jekyll-tube", + "categories": ["Pages"] +} diff --git a/pages/properties/jekyll.properties.json b/pages/properties/jekyll.properties.json new file mode 100644 index 0000000000..a6c9d5c37b --- /dev/null +++ b/pages/properties/jekyll.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Jekyll", + "creator": "GitHub Actions", + "description": "Package a Jekyll site.", + "iconName": "jekyll-tube", + "categories": ["Pages"] +} diff --git a/pages/properties/nextjs.properties.json b/pages/properties/nextjs.properties.json new file mode 100644 index 0000000000..0b9d3b4f7b --- /dev/null +++ b/pages/properties/nextjs.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Next.js", + "creator": "GitHub Actions", + "description": "Package a Next.js site.", + "iconName": "nextjs", + "categories": ["Pages"] +} diff --git a/pages/properties/nuxtjs.properties.json b/pages/properties/nuxtjs.properties.json new file mode 100644 index 0000000000..b799074f22 --- /dev/null +++ b/pages/properties/nuxtjs.properties.json @@ -0,0 +1,7 @@ +{ + "name": "NuxtJS", + "creator": "GitHub Actions", + "description": "Package a NuxtJS site.", + "iconName": "nuxtjs", + "categories": ["Pages"] +} \ No newline at end of file diff --git a/pages/properties/static.properties.json b/pages/properties/static.properties.json new file mode 100644 index 0000000000..7181b6e5b5 --- /dev/null +++ b/pages/properties/static.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Static HTML", + "description": "Deploy static files in a repository without a build.", + "iconName": "html", + "categories": ["Pages"] +} diff --git a/pages/static.yml b/pages/static.yml new file mode 100644 index 0000000000..bd753e9bd5 --- /dev/null +++ b/pages/static.yml @@ -0,0 +1,42 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v1 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@main From 10d60db629fa0e875e14c0312878873af01289cd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 26 Aug 2022 04:29:52 +0000 Subject: [PATCH 099/185] Updating GHES workflows --- icons/gatsby.svg | 7 ------- icons/html.svg | 1 - icons/hugo.svg | 9 --------- icons/jekyll-tube.svg | 1 - icons/nextjs.svg | 3 --- icons/nuxtjs.svg | 4 ---- 6 files changed, 25 deletions(-) delete mode 100644 icons/gatsby.svg delete mode 100644 icons/html.svg delete mode 100644 icons/hugo.svg delete mode 100644 icons/jekyll-tube.svg delete mode 100644 icons/nextjs.svg delete mode 100644 icons/nuxtjs.svg diff --git a/icons/gatsby.svg b/icons/gatsby.svg deleted file mode 100644 index 5578b06cb2..0000000000 --- a/icons/gatsby.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - Gatsby - - - - diff --git a/icons/html.svg b/icons/html.svg deleted file mode 100644 index b7c6bb99c2..0000000000 --- a/icons/html.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/hugo.svg b/icons/hugo.svg deleted file mode 100644 index ea72a6f51a..0000000000 --- a/icons/hugo.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/icons/jekyll-tube.svg b/icons/jekyll-tube.svg deleted file mode 100644 index 89dd55dce0..0000000000 --- a/icons/jekyll-tube.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/icons/nextjs.svg b/icons/nextjs.svg deleted file mode 100644 index c45d6e63fb..0000000000 --- a/icons/nextjs.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/icons/nuxtjs.svg b/icons/nuxtjs.svg deleted file mode 100644 index bebded37c0..0000000000 --- a/icons/nuxtjs.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - From 79875644f2dba06f047dcada85083b713a7267f3 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 19 Aug 2022 09:45:08 -0500 Subject: [PATCH 100/185] Update Pages starter workflows to use actions/configure-pages@v2 --- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/jekyll.yml | 4 ++-- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 9cdf3fc930..4f2857d8ca 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -57,7 +57,7 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v2 with: # Automatically inject pathPrefix in your Gatsby configuration file. # diff --git a/pages/hugo.yml b/pages/hugo.yml index f716508996..27f609d98a 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -43,7 +43,7 @@ jobs: submodules: recursive - name: Setup Pages id: pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v2 - name: Build with Hugo run: | hugo \ diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 7ee1e972ca..8c7a207703 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -28,7 +28,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v2 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: diff --git a/pages/jekyll.yml b/pages/jekyll.yml index 05c876114d..adc80a7815 100644 --- a/pages/jekyll.yml +++ b/pages/jekyll.yml @@ -35,8 +35,8 @@ jobs: cache-version: 0 # Increment this number if you need to re-download cached gems - name: Setup Pages id: pages - uses: actions/configure-pages@v1 - - run: bundle exec jekyll build --baseurl ${{ steps.pages.outputs.base_path }} # defaults output to '/_site' + uses: actions/configure-pages@v2 + - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" # defaults output to '/_site' - name: Upload artifact uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 79a1cc89f8..2993770a68 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -54,7 +54,7 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v2 with: # Automatically inject basePath in your Next.js configuration file and disable # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 87c1201bc5..4f5a4fde3b 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -52,7 +52,7 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v2 with: # Automatically inject router.base in your Nuxt configuration file and set # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). diff --git a/pages/static.yml b/pages/static.yml index bd753e9bd5..d466e24956 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -31,7 +31,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Pages - uses: actions/configure-pages@v1 + uses: actions/configure-pages@v2 - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: From 0c73cd6a36a3a12edc52ba499c3207acb05c1993 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 19 Aug 2022 10:15:25 -0500 Subject: [PATCH 101/185] Add a trailing slash back into the Hugo starter workflow for maximum backward compatibility with themes --- pages/hugo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/hugo.yml b/pages/hugo.yml index 27f609d98a..f5436c54df 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -48,7 +48,7 @@ jobs: run: | hugo \ --minify \ - --baseURL ${{ steps.pages.outputs.base_url }} + --baseURL ${{ steps.pages.outputs.base_url }}/ - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: From 564a98602838a8869fedf7676f0092356850bde8 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 19 Aug 2022 10:17:23 -0500 Subject: [PATCH 102/185] Remove unused step ID from a few Pages workflows --- pages/nextjs.yml | 1 - pages/nuxtjs.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 2993770a68..5c2bf67187 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -53,7 +53,6 @@ jobs: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - id: pages uses: actions/configure-pages@v2 with: # Automatically inject basePath in your Next.js configuration file and disable diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 4f5a4fde3b..4178f18125 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -51,7 +51,6 @@ jobs: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - id: pages uses: actions/configure-pages@v2 with: # Automatically inject router.base in your Nuxt configuration file and set From fff5dd325b38075fbd0167748da37c15b1fe1672 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Mon, 22 Aug 2022 16:39:05 -0500 Subject: [PATCH 103/185] Clarify './_site' directory usage --- pages/jekyll.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/jekyll.yml b/pages/jekyll.yml index adc80a7815..5c7b90c76a 100644 --- a/pages/jekyll.yml +++ b/pages/jekyll.yml @@ -36,9 +36,12 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v2 - - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" # defaults output to '/_site' + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - name: Upload artifact - uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory + # Automatically uploads an artifact from the './_site' directory by default + uses: actions/upload-pages-artifact@v1 # Deployment job deploy: From 3c6ad93f448b4c3cf73675b47294cd0bfb1d45a2 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Thu, 25 Aug 2022 22:46:15 -0500 Subject: [PATCH 104/185] Add optional quotes to Hugo CLI baseURL --- pages/hugo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/hugo.yml b/pages/hugo.yml index f5436c54df..c9f2824954 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -48,7 +48,7 @@ jobs: run: | hugo \ --minify \ - --baseURL ${{ steps.pages.outputs.base_url }}/ + --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: From cf827c2500d33ff58c37794eb7d78e6353b2bccc Mon Sep 17 00:00:00 2001 From: yimysty Date: Wed, 7 Sep 2022 12:12:16 -0700 Subject: [PATCH 105/185] backfill pages icon to ghes branch --- icons/gatsby.svg | 7 +++++++ icons/html.svg | 1 + icons/hugo.svg | 9 +++++++++ icons/nextjs.svg | 3 +++ icons/nuxtjs.svg | 4 ++++ 5 files changed, 24 insertions(+) create mode 100644 icons/gatsby.svg create mode 100644 icons/html.svg create mode 100644 icons/hugo.svg create mode 100644 icons/nextjs.svg create mode 100644 icons/nuxtjs.svg diff --git a/icons/gatsby.svg b/icons/gatsby.svg new file mode 100644 index 0000000000..5578b06cb2 --- /dev/null +++ b/icons/gatsby.svg @@ -0,0 +1,7 @@ + + + Gatsby + + + + diff --git a/icons/html.svg b/icons/html.svg new file mode 100644 index 0000000000..b7c6bb99c2 --- /dev/null +++ b/icons/html.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/hugo.svg b/icons/hugo.svg new file mode 100644 index 0000000000..ea72a6f51a --- /dev/null +++ b/icons/hugo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/icons/nextjs.svg b/icons/nextjs.svg new file mode 100644 index 0000000000..c45d6e63fb --- /dev/null +++ b/icons/nextjs.svg @@ -0,0 +1,3 @@ + + + diff --git a/icons/nuxtjs.svg b/icons/nuxtjs.svg new file mode 100644 index 0000000000..bebded37c0 --- /dev/null +++ b/icons/nuxtjs.svg @@ -0,0 +1,4 @@ + + + + From e7fc998ec0a07a7cbfcdb151bc88d849de39e6ec Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 14 Sep 2022 06:18:41 +0000 Subject: [PATCH 106/185] Updating GHES workflows --- icons/gatsby.svg | 7 ------- icons/html.svg | 1 - icons/hugo.svg | 9 --------- icons/nextjs.svg | 3 --- icons/nuxtjs.svg | 4 ---- 5 files changed, 24 deletions(-) delete mode 100644 icons/gatsby.svg delete mode 100644 icons/html.svg delete mode 100644 icons/hugo.svg delete mode 100644 icons/nextjs.svg delete mode 100644 icons/nuxtjs.svg diff --git a/icons/gatsby.svg b/icons/gatsby.svg deleted file mode 100644 index 5578b06cb2..0000000000 --- a/icons/gatsby.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - Gatsby - - - - diff --git a/icons/html.svg b/icons/html.svg deleted file mode 100644 index b7c6bb99c2..0000000000 --- a/icons/html.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/hugo.svg b/icons/hugo.svg deleted file mode 100644 index ea72a6f51a..0000000000 --- a/icons/hugo.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/icons/nextjs.svg b/icons/nextjs.svg deleted file mode 100644 index c45d6e63fb..0000000000 --- a/icons/nextjs.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/icons/nuxtjs.svg b/icons/nuxtjs.svg deleted file mode 100644 index bebded37c0..0000000000 --- a/icons/nuxtjs.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - From d82f97607549cec899277069923317bc5daf5510 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 14 Sep 2022 06:43:11 +0000 Subject: [PATCH 107/185] Updating GHES workflows --- ci/generator-generic-ossf-slsa3-publish.yml | 68 +++++++++++++ ci/node.js.yml | 2 +- ci/npm-grunt.yml | 2 +- ci/npm-gulp.yml | 2 +- ...generic-ossf-slsa3-publish.properties.json | 7 ++ ci/webpack.yml | 2 +- .../generator-generic-ossf-slsa3-publish.svg | 11 +++ icons/html.svg | 1 + icons/hugo.svg | 9 ++ icons/jekyll-tube.svg | 1 + pages/gatsby.yml | 96 ------------------- pages/hugo.yml | 7 +- pages/jekyll.yml | 56 ----------- pages/nextjs.yml | 94 ------------------ pages/nuxtjs.yml | 89 ----------------- pages/properties/gatsby.properties.json | 7 -- pages/properties/hugo.properties.json | 3 +- .../jekyll-gh-pages.properties.json | 3 +- pages/properties/jekyll.properties.json | 7 -- pages/properties/nextjs.properties.json | 7 -- pages/properties/nuxtjs.properties.json | 7 -- pages/properties/static.properties.json | 2 +- pages/static.yml | 2 +- 23 files changed, 110 insertions(+), 375 deletions(-) create mode 100644 ci/generator-generic-ossf-slsa3-publish.yml create mode 100644 ci/properties/generator-generic-ossf-slsa3-publish.properties.json create mode 100644 icons/generator-generic-ossf-slsa3-publish.svg create mode 100644 icons/html.svg create mode 100644 icons/hugo.svg create mode 100644 icons/jekyll-tube.svg delete mode 100644 pages/gatsby.yml delete mode 100644 pages/jekyll.yml delete mode 100644 pages/nextjs.yml delete mode 100644 pages/nuxtjs.yml delete mode 100644 pages/properties/gatsby.properties.json delete mode 100644 pages/properties/jekyll.properties.json delete mode 100644 pages/properties/nextjs.properties.json delete mode 100644 pages/properties/nuxtjs.properties.json diff --git a/ci/generator-generic-ossf-slsa3-publish.yml b/ci/generator-generic-ossf-slsa3-publish.yml new file mode 100644 index 0000000000..a249449a5a --- /dev/null +++ b/ci/generator-generic-ossf-slsa3-publish.yml @@ -0,0 +1,68 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow lets you generate SLSA provenance file for your project. +# The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements +# The project is an initiative of the OpenSSF (openssf.org) and is developed at +# https://github.com/slsa-framework/slsa-github-generator. +# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier. +# For more information about SLSA and how it improves the supply-chain, visit slsa.dev. + +name: SLSA generic generator +on: + workflow_dispatch: + release: + types: [created] + +permissions: read-all + +jobs: + build: + runs-on: ubuntu-latest + outputs: + digests: ${{ steps.hash.outputs.digests }} + + steps: + - uses: actions/checkout@v3 + + # ======================================================== + # + # Step 1: Build your artifacts. + # + # ======================================================== + - name: Build artifacts + run: | + # These are some amazing artifacts. + echo "artifact1" > artifact1 + echo "artifact2" > artifact2 + + # ======================================================== + # + # Step 2: Add a step to generate the provenance subjects + # as shown below. Update the sha256 sum arguments + # to include all binaries that you generate + # provenance for. + # + # ======================================================== + - name: Generate subject + id: hash + run: | + set -euo pipefail + + # List the artifacts the provenance will refer to. + files=$(ls artifact*) + # Generate the subjects (base64 encoded). + echo "::set-output name=digests::$(sha256sum $files | base64 -w0)" + + provenance: + needs: [build] + permissions: + actions: read # To read the workflow path. + id-token: write # To sign the provenance. + contents: write # To add assets to a release. + uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.2.0 + with: + base64-subjects: "${{ needs.build.outputs.digests }}" + upload-assets: true # Optional: Upload to a new release diff --git a/ci/node.js.yml b/ci/node.js.yml index 87ef0d8f5e..a89108d690 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/ci/npm-grunt.yml b/ci/npm-grunt.yml index eda97e1fd7..e39ddbfe7c 100644 --- a/ci/npm-grunt.yml +++ b/ci/npm-grunt.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v3 diff --git a/ci/npm-gulp.yml b/ci/npm-gulp.yml index 504f22ea61..7606deaf43 100644 --- a/ci/npm-gulp.yml +++ b/ci/npm-gulp.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v3 diff --git a/ci/properties/generator-generic-ossf-slsa3-publish.properties.json b/ci/properties/generator-generic-ossf-slsa3-publish.properties.json new file mode 100644 index 0000000000..32cf63d06b --- /dev/null +++ b/ci/properties/generator-generic-ossf-slsa3-publish.properties.json @@ -0,0 +1,7 @@ +{ + "name": "SLSA Generic generator", + "creator": "Open Source Security Foundation (OpenSSF)", + "description": "Generate SLSA3 provenance for your existing release workflows", + "iconName": "generator-generic-ossf-slsa3-publish", + "categories": ["Continuous integration", "Go", "Elixir", "Erlang", "PHP", "Haskell", "Rust", "Java", "Scala", "Gradle", "Maven", "Python", "C", "C++", "TypeScript", "JavaScript", "npm", "Ruby", "HTML", "Composer", "Makefile", "Ada"] +} diff --git a/ci/webpack.yml b/ci/webpack.yml index 6449fe7a7b..0bc6406270 100644 --- a/ci/webpack.yml +++ b/ci/webpack.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v3 diff --git a/icons/generator-generic-ossf-slsa3-publish.svg b/icons/generator-generic-ossf-slsa3-publish.svg new file mode 100644 index 0000000000..ea7746896d --- /dev/null +++ b/icons/generator-generic-ossf-slsa3-publish.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/icons/html.svg b/icons/html.svg new file mode 100644 index 0000000000..b7c6bb99c2 --- /dev/null +++ b/icons/html.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/hugo.svg b/icons/hugo.svg new file mode 100644 index 0000000000..ea72a6f51a --- /dev/null +++ b/icons/hugo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/icons/jekyll-tube.svg b/icons/jekyll-tube.svg new file mode 100644 index 0000000000..89dd55dce0 --- /dev/null +++ b/icons/jekyll-tube.svg @@ -0,0 +1 @@ + diff --git a/pages/gatsby.yml b/pages/gatsby.yml deleted file mode 100644 index 4f2857d8ca..0000000000 --- a/pages/gatsby.yml +++ /dev/null @@ -1,96 +0,0 @@ -# Sample workflow for building and deploying a Gatsby site to GitHub Pages -# -# To get started with Gatsby see: https://www.gatsbyjs.com/docs/quick-start/ -# -name: Deploy Gatsby site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: [$default-branch] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -# Default to bash -defaults: - run: - shell: bash - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Detect package manager - id: detect-package-manager - run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "::set-output name=manager::yarn" - echo "::set-output name=command::install" - exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "::set-output name=manager::npm" - echo "::set-output name=command::ci" - exit 0 - else - echo "Unable to determine packager manager" - exit 1 - fi - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Setup Pages - id: pages - uses: actions/configure-pages@v2 - with: - # Automatically inject pathPrefix in your Gatsby configuration file. - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: gatsby - - name: Restore cache - uses: actions/cache@v3 - with: - path: | - public - .cache - key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }} - restore-keys: | - ${{ runner.os }}-gatsby-build- - - name: Install dependencies - run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Build with Gatsby - env: - PREFIX_PATHS: 'true' - run: ${{ steps.detect-package-manager.outputs.manager }} run build - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./public - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 diff --git a/pages/hugo.yml b/pages/hugo.yml index c9f2824954..f273fb2068 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -1,5 +1,4 @@ # Sample workflow for building and deploying a Hugo site to GitHub Pages -# name: Deploy Hugo site to Pages on: @@ -31,7 +30,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.99.0 + HUGO_VERSION: 0.102.3 steps: - name: Install Hugo CLI run: | @@ -45,6 +44,10 @@ jobs: id: pages uses: actions/configure-pages@v2 - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production run: | hugo \ --minify \ diff --git a/pages/jekyll.yml b/pages/jekyll.yml deleted file mode 100644 index 5c7b90c76a..0000000000 --- a/pages/jekyll.yml +++ /dev/null @@ -1,56 +0,0 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: [$default-branch] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.0' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 0 # Increment this number if you need to re-download cached gems - - name: Setup Pages - id: pages - uses: actions/configure-pages@v2 - - name: Build with Jekyll - # Outputs to the './_site' directory by default - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - - name: Upload artifact - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v1 - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 diff --git a/pages/nextjs.yml b/pages/nextjs.yml deleted file mode 100644 index 5c2bf67187..0000000000 --- a/pages/nextjs.yml +++ /dev/null @@ -1,94 +0,0 @@ -# Sample workflow for building and deploying a Next.js site to GitHub Pages -# -# To get started with Next.js see: https://nextjs.org/docs/getting-started -# -name: Deploy Next.js site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: [$default-branch] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Detect package manager - id: detect-package-manager - run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "::set-output name=manager::yarn" - echo "::set-output name=command::install" - echo "::set-output name=runner::yarn" - exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "::set-output name=manager::npm" - echo "::set-output name=command::ci" - echo "::set-output name=runner::npx --no-install" - exit 0 - else - echo "Unable to determine packager manager" - exit 1 - fi - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Setup Pages - uses: actions/configure-pages@v2 - with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: next - - name: Restore cache - uses: actions/cache@v3 - with: - path: | - .next/cache - # Generate a new cache whenever packages or source files change. - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} - # If source files changed but packages didn't, rebuild from a prior cache. - restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - - name: Install dependencies - run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Build with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next build - - name: Static HTML export with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next export - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./out - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml deleted file mode 100644 index 4178f18125..0000000000 --- a/pages/nuxtjs.yml +++ /dev/null @@ -1,89 +0,0 @@ -# Sample workflow for building and deploying a Nuxt site to GitHub Pages -# -# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation -# -name: Deploy Nuxt site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: [$default-branch] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Detect package manager - id: detect-package-manager - run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "::set-output name=manager::yarn" - echo "::set-output name=command::install" - exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "::set-output name=manager::npm" - echo "::set-output name=command::ci" - exit 0 - else - echo "Unable to determine packager manager" - exit 1 - fi - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Setup Pages - uses: actions/configure-pages@v2 - with: - # Automatically inject router.base in your Nuxt configuration file and set - # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: nuxt - - name: Restore cache - uses: actions/cache@v3 - with: - path: | - dist - .nuxt - key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} - restore-keys: | - ${{ runner.os }}-nuxt-build- - - name: Install dependencies - run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Static HTML export with Nuxt - run: ${{ steps.detect-package-manager.outputs.manager }} run generate - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./dist - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 diff --git a/pages/properties/gatsby.properties.json b/pages/properties/gatsby.properties.json deleted file mode 100644 index 7d82424e63..0000000000 --- a/pages/properties/gatsby.properties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Gatsby", - "creator": "GitHub Actions", - "description": "Package a Gatsby site.", - "iconName": "gatsby", - "categories": ["Pages"] -} \ No newline at end of file diff --git a/pages/properties/hugo.properties.json b/pages/properties/hugo.properties.json index 1fa902c954..b6f6dc7c5c 100644 --- a/pages/properties/hugo.properties.json +++ b/pages/properties/hugo.properties.json @@ -1,7 +1,6 @@ { "name": "Hugo", - "creator": "GitHub Actions", "description": "Package a Hugo site.", "iconName": "hugo", - "categories": ["Pages"] + "categories": ["Pages", "Hugo"] } \ No newline at end of file diff --git a/pages/properties/jekyll-gh-pages.properties.json b/pages/properties/jekyll-gh-pages.properties.json index 6f278c8d42..3e38602fae 100644 --- a/pages/properties/jekyll-gh-pages.properties.json +++ b/pages/properties/jekyll-gh-pages.properties.json @@ -1,7 +1,6 @@ { "name": "GitHub Pages Jekyll", - "creator": "GitHub Actions", "description": "Package a Jekyll site with GitHub Pages dependencies preinstalled.", "iconName": "jekyll-tube", - "categories": ["Pages"] + "categories": ["Pages", "Jekyll"] } diff --git a/pages/properties/jekyll.properties.json b/pages/properties/jekyll.properties.json deleted file mode 100644 index a6c9d5c37b..0000000000 --- a/pages/properties/jekyll.properties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Jekyll", - "creator": "GitHub Actions", - "description": "Package a Jekyll site.", - "iconName": "jekyll-tube", - "categories": ["Pages"] -} diff --git a/pages/properties/nextjs.properties.json b/pages/properties/nextjs.properties.json deleted file mode 100644 index 0b9d3b4f7b..0000000000 --- a/pages/properties/nextjs.properties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Next.js", - "creator": "GitHub Actions", - "description": "Package a Next.js site.", - "iconName": "nextjs", - "categories": ["Pages"] -} diff --git a/pages/properties/nuxtjs.properties.json b/pages/properties/nuxtjs.properties.json deleted file mode 100644 index b799074f22..0000000000 --- a/pages/properties/nuxtjs.properties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "NuxtJS", - "creator": "GitHub Actions", - "description": "Package a NuxtJS site.", - "iconName": "nuxtjs", - "categories": ["Pages"] -} \ No newline at end of file diff --git a/pages/properties/static.properties.json b/pages/properties/static.properties.json index 7181b6e5b5..372579c094 100644 --- a/pages/properties/static.properties.json +++ b/pages/properties/static.properties.json @@ -2,5 +2,5 @@ "name": "Static HTML", "description": "Deploy static files in a repository without a build.", "iconName": "html", - "categories": ["Pages"] + "categories": ["Pages", "HTML", "JavaScript", "CSS"] } diff --git a/pages/static.yml b/pages/static.yml index d466e24956..9e0e871522 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -39,4 +39,4 @@ jobs: path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@main + uses: actions/deploy-pages@v1 From 62e7cb9cae56c9940bf41893ebc29ae3888aa4e5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 14 Sep 2022 06:52:18 +0000 Subject: [PATCH 108/185] Updating GHES workflows --- ci/php.yml | 39 ++++++++++ ci/properties/php.properties.json | 6 ++ icons/gatsby.svg | 7 ++ icons/nextjs.svg | 3 + icons/nuxtjs.svg | 4 ++ icons/php.svg | 1 + pages/gatsby.yml | 96 +++++++++++++++++++++++++ pages/nextjs.yml | 94 ++++++++++++++++++++++++ pages/nuxtjs.yml | 89 +++++++++++++++++++++++ pages/properties/gatsby.properties.json | 6 ++ pages/properties/nextjs.properties.json | 6 ++ pages/properties/nuxtjs.properties.json | 6 ++ 12 files changed, 357 insertions(+) create mode 100644 ci/php.yml create mode 100644 ci/properties/php.properties.json create mode 100644 icons/gatsby.svg create mode 100644 icons/nextjs.svg create mode 100644 icons/nuxtjs.svg create mode 100644 icons/php.svg create mode 100644 pages/gatsby.yml create mode 100644 pages/nextjs.yml create mode 100644 pages/nuxtjs.yml create mode 100644 pages/properties/gatsby.properties.json create mode 100644 pages/properties/nextjs.properties.json create mode 100644 pages/properties/nuxtjs.properties.json diff --git a/ci/php.yml b/ci/php.yml new file mode 100644 index 0000000000..a3bdfd7db9 --- /dev/null +++ b/ci/php.yml @@ -0,0 +1,39 @@ +name: PHP Composer + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Validate composer.json and composer.lock + run: composer validate --strict + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" + # Docs: https://getcomposer.org/doc/articles/scripts.md + + # - name: Run test suite + # run: composer run-script test diff --git a/ci/properties/php.properties.json b/ci/properties/php.properties.json new file mode 100644 index 0000000000..f345a28f56 --- /dev/null +++ b/ci/properties/php.properties.json @@ -0,0 +1,6 @@ +{ + "name": "PHP", + "description": "Build and test a PHP application using Composer", + "iconName": "php", + "categories": ["Continuous integration", "PHP", "Composer"] +} \ No newline at end of file diff --git a/icons/gatsby.svg b/icons/gatsby.svg new file mode 100644 index 0000000000..5578b06cb2 --- /dev/null +++ b/icons/gatsby.svg @@ -0,0 +1,7 @@ + + + Gatsby + + + + diff --git a/icons/nextjs.svg b/icons/nextjs.svg new file mode 100644 index 0000000000..c45d6e63fb --- /dev/null +++ b/icons/nextjs.svg @@ -0,0 +1,3 @@ + + + diff --git a/icons/nuxtjs.svg b/icons/nuxtjs.svg new file mode 100644 index 0000000000..bebded37c0 --- /dev/null +++ b/icons/nuxtjs.svg @@ -0,0 +1,4 @@ + + + + diff --git a/icons/php.svg b/icons/php.svg new file mode 100644 index 0000000000..5a3bfa907a --- /dev/null +++ b/icons/php.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pages/gatsby.yml b/pages/gatsby.yml new file mode 100644 index 0000000000..4f2857d8ca --- /dev/null +++ b/pages/gatsby.yml @@ -0,0 +1,96 @@ +# Sample workflow for building and deploying a Gatsby site to GitHub Pages +# +# To get started with Gatsby see: https://www.gatsbyjs.com/docs/quick-start/ +# +name: Deploy Gatsby site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "::set-output name=manager::yarn" + echo "::set-output name=command::install" + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "::set-output name=manager::npm" + echo "::set-output name=command::ci" + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + id: pages + uses: actions/configure-pages@v2 + with: + # Automatically inject pathPrefix in your Gatsby configuration file. + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: gatsby + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + public + .cache + key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }} + restore-keys: | + ${{ runner.os }}-gatsby-build- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build with Gatsby + env: + PREFIX_PATHS: 'true' + run: ${{ steps.detect-package-manager.outputs.manager }} run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/nextjs.yml b/pages/nextjs.yml new file mode 100644 index 0000000000..5c2bf67187 --- /dev/null +++ b/pages/nextjs.yml @@ -0,0 +1,94 @@ +# Sample workflow for building and deploying a Next.js site to GitHub Pages +# +# To get started with Next.js see: https://nextjs.org/docs/getting-started +# +name: Deploy Next.js site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "::set-output name=manager::yarn" + echo "::set-output name=command::install" + echo "::set-output name=runner::yarn" + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "::set-output name=manager::npm" + echo "::set-output name=command::ci" + echo "::set-output name=runner::npx --no-install" + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + uses: actions/configure-pages@v2 + with: + # Automatically inject basePath in your Next.js configuration file and disable + # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: next + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + .next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Static HTML export with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next export + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./out + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml new file mode 100644 index 0000000000..4178f18125 --- /dev/null +++ b/pages/nuxtjs.yml @@ -0,0 +1,89 @@ +# Sample workflow for building and deploying a Nuxt site to GitHub Pages +# +# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation +# +name: Deploy Nuxt site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "::set-output name=manager::yarn" + echo "::set-output name=command::install" + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "::set-output name=manager::npm" + echo "::set-output name=command::ci" + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + uses: actions/configure-pages@v2 + with: + # Automatically inject router.base in your Nuxt configuration file and set + # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: nuxt + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + dist + .nuxt + key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} + restore-keys: | + ${{ runner.os }}-nuxt-build- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Static HTML export with Nuxt + run: ${{ steps.detect-package-manager.outputs.manager }} run generate + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./dist + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/properties/gatsby.properties.json b/pages/properties/gatsby.properties.json new file mode 100644 index 0000000000..df260f89ba --- /dev/null +++ b/pages/properties/gatsby.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Gatsby", + "description": "Package a Gatsby site.", + "iconName": "gatsby", + "categories": ["Pages", "Gatsby"] +} \ No newline at end of file diff --git a/pages/properties/nextjs.properties.json b/pages/properties/nextjs.properties.json new file mode 100644 index 0000000000..42099089ed --- /dev/null +++ b/pages/properties/nextjs.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Next.js", + "description": "Package a Next.js site.", + "iconName": "nextjs", + "categories": ["Pages", "Next"] +} diff --git a/pages/properties/nuxtjs.properties.json b/pages/properties/nuxtjs.properties.json new file mode 100644 index 0000000000..d79909efb1 --- /dev/null +++ b/pages/properties/nuxtjs.properties.json @@ -0,0 +1,6 @@ +{ + "name": "NuxtJS", + "description": "Package a NuxtJS site.", + "iconName": "nuxtjs", + "categories": ["Pages", "Nuxt"] +} \ No newline at end of file From ce61da64bd8c783e5f9a5e796e74e7e1d131362e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 14 Sep 2022 10:57:16 +0000 Subject: [PATCH 109/185] Updating GHES workflows --- ci/django.yml | 30 ++++++++++++++ ci/properties/django.properties.json | 6 +++ ci/properties/pylint.properties.json | 6 +++ ci/properties/python-app.properties.json | 6 +++ .../python-package-conda.properties.json | 6 +++ ci/properties/python-package.properties.json | 6 +++ ci/pylint.yml | 23 +++++++++++ ci/python-app.yml | 39 ++++++++++++++++++ ci/python-package-conda.yml | 34 ++++++++++++++++ ci/python-package.yml | 40 +++++++++++++++++++ icons/django.svg | 1 + icons/python.svg | 1 + 12 files changed, 198 insertions(+) create mode 100644 ci/django.yml create mode 100644 ci/properties/django.properties.json create mode 100644 ci/properties/pylint.properties.json create mode 100644 ci/properties/python-app.properties.json create mode 100644 ci/properties/python-package-conda.properties.json create mode 100644 ci/properties/python-package.properties.json create mode 100644 ci/pylint.yml create mode 100644 ci/python-app.yml create mode 100644 ci/python-package-conda.yml create mode 100644 ci/python-package.yml create mode 100644 icons/django.svg create mode 100644 icons/python.svg diff --git a/ci/django.yml b/ci/django.yml new file mode 100644 index 0000000000..79550cc789 --- /dev/null +++ b/ci/django.yml @@ -0,0 +1,30 @@ +name: Django CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + run: | + python manage.py test diff --git a/ci/properties/django.properties.json b/ci/properties/django.properties.json new file mode 100644 index 0000000000..791fb21aa6 --- /dev/null +++ b/ci/properties/django.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Django", + "description": "Build and Test a Django Project", + "iconName": "django", + "categories": ["Continuous integration", "Python", "Django"] +} diff --git a/ci/properties/pylint.properties.json b/ci/properties/pylint.properties.json new file mode 100644 index 0000000000..23c15dc02a --- /dev/null +++ b/ci/properties/pylint.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Pylint", + "description": "Lint a Python application with pylint.", + "iconName": "python", + "categories": ["Continuous integration", "Python", "Bottle", "Flask"] +} diff --git a/ci/properties/python-app.properties.json b/ci/properties/python-app.properties.json new file mode 100644 index 0000000000..1229b2961f --- /dev/null +++ b/ci/properties/python-app.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Python application", + "description": "Create and test a Python application.", + "iconName": "python", + "categories": ["Continuous integration", "Python", "Bottle", "Flask"] +} diff --git a/ci/properties/python-package-conda.properties.json b/ci/properties/python-package-conda.properties.json new file mode 100644 index 0000000000..56007668b8 --- /dev/null +++ b/ci/properties/python-package-conda.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Python Package using Anaconda", + "description": "Create and test a Python package on multiple Python versions using Anaconda for package management.", + "iconName": "python", + "categories": ["Continuous integration", "Python"] +} diff --git a/ci/properties/python-package.properties.json b/ci/properties/python-package.properties.json new file mode 100644 index 0000000000..8c9dbcfa62 --- /dev/null +++ b/ci/properties/python-package.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Python package", + "description": "Create and test a Python package on multiple Python versions.", + "iconName": "python", + "categories": ["Continuous integration", "Python", "Bottle", "Flask"] +} diff --git a/ci/pylint.yml b/ci/pylint.yml new file mode 100644 index 0000000000..383e65cd03 --- /dev/null +++ b/ci/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') diff --git a/ci/python-app.yml b/ci/python-app.yml new file mode 100644 index 0000000000..4b7fa5f2da --- /dev/null +++ b/ci/python-app.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python application + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml new file mode 100644 index 0000000000..57940bdb0c --- /dev/null +++ b/ci/python-package-conda.yml @@ -0,0 +1,34 @@ +name: Python Package using Conda + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: 3.10 + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Lint with flake8 + run: | + conda install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + conda install pytest + pytest diff --git a/ci/python-package.yml b/ci/python-package.yml new file mode 100644 index 0000000000..583a366774 --- /dev/null +++ b/ci/python-package.yml @@ -0,0 +1,40 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/icons/django.svg b/icons/django.svg new file mode 100644 index 0000000000..68cda567bb --- /dev/null +++ b/icons/django.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/python.svg b/icons/python.svg new file mode 100644 index 0000000000..8e2a35ba47 --- /dev/null +++ b/icons/python.svg @@ -0,0 +1 @@ + \ No newline at end of file From 9038abce3043b343bb4cc4aa8f3a21a7c8e61d0f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 21 Sep 2022 15:06:01 +0000 Subject: [PATCH 110/185] Updating GHES workflows --- ci/{jekyll.yml => jekyll-docker.yml} | 0 ...ies.json => jekyll-docker.properties.json} | 0 code-scanning/codeql.yml | 2 + code-scanning/eslint.yml | 49 ------------------- .../properties/eslint.properties.json | 11 ----- icons/eslint.svg | 1 - 6 files changed, 2 insertions(+), 61 deletions(-) rename ci/{jekyll.yml => jekyll-docker.yml} (100%) rename ci/properties/{jekyll.properties.json => jekyll-docker.properties.json} (100%) delete mode 100644 code-scanning/eslint.yml delete mode 100644 code-scanning/properties/eslint.properties.json delete mode 100644 icons/eslint.svg diff --git a/ci/jekyll.yml b/ci/jekyll-docker.yml similarity index 100% rename from ci/jekyll.yml rename to ci/jekyll-docker.yml diff --git a/ci/properties/jekyll.properties.json b/ci/properties/jekyll-docker.properties.json similarity index 100% rename from ci/properties/jekyll.properties.json rename to ci/properties/jekyll-docker.properties.json diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index a113b5951f..00ffcdb7af 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -70,3 +70,5 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" diff --git a/code-scanning/eslint.yml b/code-scanning/eslint.yml deleted file mode 100644 index 9067a7d530..0000000000 --- a/code-scanning/eslint.yml +++ /dev/null @@ -1,49 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# ESLint is a tool for identifying and reporting on patterns -# found in ECMAScript/JavaScript code. -# More details at https://github.com/eslint/eslint -# and https://eslint.org - -name: ESLint - -on: - push: - branches: [ $default-branch, $protected-branches ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ $default-branch ] - schedule: - - cron: $cron-weekly - -jobs: - eslint: - name: Run eslint scanning - runs-on: ubuntu-latest - permissions: - contents: read - security-events: write - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install ESLint - run: | - npm install eslint@8.10.0 - npm install @microsoft/eslint-formatter-sarif@2.1.7 - - - name: Run ESLint - run: npx eslint . - --config .eslintrc.js - --ext .js,.jsx,.ts,.tsx - --format @microsoft/eslint-formatter-sarif - --output-file eslint-results.sarif - continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true \ No newline at end of file diff --git a/code-scanning/properties/eslint.properties.json b/code-scanning/properties/eslint.properties.json deleted file mode 100644 index a84646a82f..0000000000 --- a/code-scanning/properties/eslint.properties.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "ESLint", - "description": "A tool for identifying and reporting the problems found in ECMAScript/JavaScript code.", - "iconName": "eslint", - "categories": [ - "Code Scanning", - "JavaScript", - "EcmaScript", - "TypeScript" - ] -} \ No newline at end of file diff --git a/icons/eslint.svg b/icons/eslint.svg deleted file mode 100644 index 23964aa103..0000000000 --- a/icons/eslint.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 7f1d6601121ecd5c26d52d6191bf95c00c6c25de Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 22 Sep 2022 11:46:26 +0000 Subject: [PATCH 111/185] Updating GHES workflows --- code-scanning/detekt.yml | 118 ++++++++++++++++++ code-scanning/eslint.yml | 50 ++++++++ .../properties/codeql.properties.json | 1 + .../properties/detekt.properties.json | 8 ++ .../properties/eslint.properties.json | 12 ++ icons/detekt.svg | 32 +++++ icons/eslint.svg | 1 + 7 files changed, 222 insertions(+) create mode 100644 code-scanning/detekt.yml create mode 100644 code-scanning/eslint.yml create mode 100644 code-scanning/properties/detekt.properties.json create mode 100644 code-scanning/properties/eslint.properties.json create mode 100644 icons/detekt.svg create mode 100644 icons/eslint.svg diff --git a/code-scanning/detekt.yml b/code-scanning/detekt.yml new file mode 100644 index 0000000000..0c65813487 --- /dev/null +++ b/code-scanning/detekt.yml @@ -0,0 +1,118 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow performs a static analysis of your Kotlin source code using +# Detekt. +# +# Scans are triggered: +# 1. On every push to default and protected branches +# 2. On every Pull Request targeting the default branch +# 3. On a weekly schedule +# 4. Manually, on demand, via the "workflow_dispatch" event +# +# The workflow should work with no modifications, but you might like to use a +# later version of the Detekt CLI by modifing the $DETEKT_RELEASE_TAG +# environment variable. +name: Scan with Detekt + +on: + # Triggers the workflow on push or pull request events but only for default and protected branches + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +env: + # Release tag associated with version of Detekt to be installed + # SARIF support (required for this workflow) was introduced in Detekt v1.15.0 + DETEKT_RELEASE_TAG: v1.15.0 + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "scan" + scan: + name: Scan + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Gets the download URL associated with the $DETEKT_RELEASE_TAG + - name: Get Detekt download URL + id: detekt_info + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh api graphql --field tagName=$DETEKT_RELEASE_TAG --raw-field query=' + query getReleaseAssetDownloadUrl($tagName: String!) { + repository(name: "detekt", owner: "detekt") { + release(tagName: $tagName) { + releaseAssets(name: "detekt", first: 1) { + nodes { + downloadUrl + } + } + tagCommit { + oid + } + } + } + } + ' 1> gh_response.json + + DETEKT_RELEASE_SHA=$(jq --raw-output '.data.repository.release.releaseAssets.tagCommit.oid' gh_response.json) + if [ $DETEKT_RELEASE_SHA != "37f0a1d006977512f1f216506cd695039607c3e5" ]; then + echo "Release tag doesn't match expected commit SHA" + exit 1 + fi + + DETEKT_DOWNLOAD_URL=$(jq --raw-output '.data.repository.release.releaseAssets.nodes[0].downloadUrl' gh_response.json) + echo "::set-output name=download_url::$DETEKT_DOWNLOAD_URL" + + # Sets up the detekt cli + - name: Setup Detekt + run: | + dest=$( mktemp -d ) + curl --request GET \ + --url ${{ steps.detekt_info.outputs.download_url }} \ + --silent \ + --location \ + --output $dest/detekt + chmod a+x $dest/detekt + echo $dest >> $GITHUB_PATH + + # Performs static analysis using Detekt + - name: Run Detekt + continue-on-error: true + run: | + detekt --input ${{ github.workspace }} --report sarif:${{ github.workspace }}/detekt.sarif.json + + # Modifies the SARIF output produced by Detekt so that absolute URIs are relative + # This is so we can easily map results onto their source files + # This can be removed once relative URI support lands in Detekt: https://git.io/JLBbA + - name: Make artifact location URIs relative + continue-on-error: true + run: | + echo "$( + jq \ + --arg github_workspace ${{ github.workspace }} \ + '. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \ + ${{ github.workspace }}/detekt.sarif.json + )" > ${{ github.workspace }}/detekt.sarif.json + + # Uploads results to GitHub repository using the upload-sarif action + - uses: github/codeql-action/upload-sarif@v2 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: ${{ github.workspace }}/detekt.sarif.json + checkout_path: ${{ github.workspace }} diff --git a/code-scanning/eslint.yml b/code-scanning/eslint.yml new file mode 100644 index 0000000000..54b01c839e --- /dev/null +++ b/code-scanning/eslint.yml @@ -0,0 +1,50 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# ESLint is a tool for identifying and reporting on patterns +# found in ECMAScript/JavaScript code. +# More details at https://github.com/eslint/eslint +# and https://eslint.org + +name: ESLint + +on: + push: + branches: [ $default-branch, $protected-branches ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ $default-branch ] + schedule: + - cron: $cron-weekly + +jobs: + eslint: + name: Run eslint scanning + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install ESLint + run: | + npm install eslint@8.10.0 + npm install @microsoft/eslint-formatter-sarif@2.1.7 + + - name: Run ESLint + run: npx eslint . + --config .eslintrc.js + --ext .js,.jsx,.ts,.tsx + --format @microsoft/eslint-formatter-sarif + --output-file eslint-results.sarif + continue-on-error: true + + - name: Upload analysis results to GitHub + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: eslint-results.sarif + wait-for-processing: true \ No newline at end of file diff --git a/code-scanning/properties/codeql.properties.json b/code-scanning/properties/codeql.properties.json index ddb4627f49..8ee80b42cf 100644 --- a/code-scanning/properties/codeql.properties.json +++ b/code-scanning/properties/codeql.properties.json @@ -1,6 +1,7 @@ { "name": "CodeQL Analysis", "creator": "GitHub", + "enterprise": true, "description": "Security analysis from GitHub for C, C++, C#, Go, Java, JavaScript, TypeScript, Python, and Ruby developers.", "iconName": "octicon mark-github", "categories": ["Code Scanning", "C", "C++", "C#", "Go", "Java", "JavaScript", "TypeScript", "Python", "Ruby"] diff --git a/code-scanning/properties/detekt.properties.json b/code-scanning/properties/detekt.properties.json new file mode 100644 index 0000000000..c133cc1354 --- /dev/null +++ b/code-scanning/properties/detekt.properties.json @@ -0,0 +1,8 @@ +{ + "name": "Detekt", + "creator": "Detekt", + "description": "Static code analysis for Kotlin", + "iconName": "detekt", + "categories": ["Code Scanning", "Kotlin"], + "enterprise": false +} diff --git a/code-scanning/properties/eslint.properties.json b/code-scanning/properties/eslint.properties.json new file mode 100644 index 0000000000..2a1271f845 --- /dev/null +++ b/code-scanning/properties/eslint.properties.json @@ -0,0 +1,12 @@ +{ + "name": "ESLint", + "description": "A tool for identifying and reporting the problems found in ECMAScript/JavaScript code.", + "iconName": "eslint", + "enterprise": false, + "categories": [ + "Code Scanning", + "JavaScript", + "EcmaScript", + "TypeScript" + ] +} diff --git a/icons/detekt.svg b/icons/detekt.svg new file mode 100644 index 0000000000..152617078c --- /dev/null +++ b/icons/detekt.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/eslint.svg b/icons/eslint.svg new file mode 100644 index 0000000000..23964aa103 --- /dev/null +++ b/icons/eslint.svg @@ -0,0 +1 @@ + \ No newline at end of file From 51d26076d67264c77b0e017003ad0f980d5583cc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 30 Sep 2022 12:21:47 +0000 Subject: [PATCH 112/185] Updating GHES workflows --- ci/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index a8eccabbbe..7465e23a05 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Setup .NET - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v3 with: dotnet-version: 6.0.x - name: Restore dependencies From c757f4d1a1395f9386f8ac0dc459047205a1152e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 13 Oct 2022 05:35:30 +0000 Subject: [PATCH 113/185] Updating GHES workflows --- ci/properties/jekyll-docker.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/jekyll-docker.properties.json b/ci/properties/jekyll-docker.properties.json index bbe279cbea..7c66dba0ac 100644 --- a/ci/properties/jekyll-docker.properties.json +++ b/ci/properties/jekyll-docker.properties.json @@ -1,5 +1,5 @@ { - "name": "Jekyll", + "name": "Jekyll using Docker image", "description": "Package a Jekyll site using the jekyll/builder Docker image.", "iconName": "jekyll", "categories": ["Continuous integration", "HTML"] From 623da53b9d082a0f1fdeaf4204eaaf62a6f3d969 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 20 Oct 2022 04:29:35 +0000 Subject: [PATCH 114/185] Updating GHES workflows --- ci/ant.yml | 2 +- ci/dotnet.yml | 3 +++ ci/go.yml | 3 +++ ci/maven.yml | 2 +- ci/node.js.yml | 2 +- ci/npm-publish-github-packages.yml | 2 +- ci/npm-publish.yml | 2 +- ci/python-app.yml | 2 +- ci/python-package.yml | 2 +- ci/swift.yml | 3 +++ 10 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ci/ant.yml b/ci/ant.yml index 16146641ae..e9dba0106e 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -1,5 +1,5 @@ # This workflow will build a Java project with Ant -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant name: Java CI diff --git a/ci/dotnet.yml b/ci/dotnet.yml index 7465e23a05..f11f05069d 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -1,3 +1,6 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + name: .NET on: diff --git a/ci/go.yml b/ci/go.yml index bb3ec96482..4d95674ed1 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -1,3 +1,6 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + name: Go on: diff --git a/ci/maven.yml b/ci/maven.yml index 65e0dff20e..26bfc73522 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -1,5 +1,5 @@ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven name: Java CI with Maven diff --git a/ci/node.js.yml b/ci/node.js.yml index a89108d690..f230593b30 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,5 +1,5 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs name: Node.js CI diff --git a/ci/npm-publish-github-packages.yml b/ci/npm-publish-github-packages.yml index 638ccf806c..e790f4dd4f 100644 --- a/ci/npm-publish-github-packages.yml +++ b/ci/npm-publish-github-packages.yml @@ -1,5 +1,5 @@ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages name: Node.js Package diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index c461c85dd9..6cdebafb6b 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -1,5 +1,5 @@ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages name: Node.js Package diff --git a/ci/python-app.yml b/ci/python-app.yml index 4b7fa5f2da..994538258f 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -1,5 +1,5 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python name: Python application diff --git a/ci/python-package.yml b/ci/python-package.yml index 583a366774..de579a3d4e 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -1,5 +1,5 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python name: Python package diff --git a/ci/swift.yml b/ci/swift.yml index 3668fc0be6..91276e31fa 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -1,3 +1,6 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + name: Swift on: From e19b783da4936e9809f87a5c653f957230ca131b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 25 Oct 2022 11:07:58 +0000 Subject: [PATCH 115/185] Updating GHES workflows --- ci/maven.yml | 26 -------------------------- ci/properties/maven.properties.json | 6 ------ 2 files changed, 32 deletions(-) delete mode 100644 ci/maven.yml delete mode 100644 ci/properties/maven.properties.json diff --git a/ci/maven.yml b/ci/maven.yml deleted file mode 100644 index 26bfc73522..0000000000 --- a/ci/maven.yml +++ /dev/null @@ -1,26 +0,0 @@ -# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven - -name: Java CI with Maven - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn -B package --file pom.xml diff --git a/ci/properties/maven.properties.json b/ci/properties/maven.properties.json deleted file mode 100644 index be8f7bf636..0000000000 --- a/ci/properties/maven.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Java with Maven", - "description": "Build and test a Java project with Apache Maven.", - "iconName": "maven", - "categories": ["Continuous integration", "Java", "Maven", "Spring", "JSF"] -} From 62588429e6bed7a6393167f792177b3d789c8bae Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 27 Oct 2022 07:05:03 +0000 Subject: [PATCH 116/185] Updating GHES workflows --- code-scanning/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 00ffcdb7af..34c5de72a1 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -53,7 +53,7 @@ jobs: # queries: security-extended,security-and-quality - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v2 From a55693d47e65c1040587e7d02f3cd20407904ebc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 27 Oct 2022 18:15:30 +0000 Subject: [PATCH 117/185] Updating GHES workflows --- icons/astro.svg | 20 +++++++ pages/astro.yml | 76 ++++++++++++++++++++++++++ pages/properties/astro.properties.json | 6 ++ 3 files changed, 102 insertions(+) create mode 100644 icons/astro.svg create mode 100644 pages/astro.yml create mode 100644 pages/properties/astro.properties.json diff --git a/icons/astro.svg b/icons/astro.svg new file mode 100644 index 0000000000..ff9dd54b54 --- /dev/null +++ b/icons/astro.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/pages/astro.yml b/pages/astro.yml new file mode 100644 index 0000000000..1d4ec5fcb8 --- /dev/null +++ b/pages/astro.yml @@ -0,0 +1,76 @@ +# Sample workflow for building and deploying an Astro site to GitHub Pages +# +# To get started with Astro see: https://docs.astro.build/en/getting-started/ +# +name: Deploy Astro site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +env: + BUILD_PATH: "." # default value when not using subfolders + # BUILD_PATH: subfolder + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "::set-output name=manager::yarn" + echo "::set-output name=command::install" + echo "::set-output name=runner::yarn" + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "::set-output name=manager::npm" + echo "::set-output name=command::ci" + echo "::set-output name=runner::npx --no-install" + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json + - run: npm install && npm run build + working-directory: ${{ env.BUILD_PATH }} + - uses: actions/upload-pages-artifact@v1 + with: + path: ${{ env.BUILD_PATH }}/dist + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build + runs-on: ubuntu-latest + name: Deploy + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/properties/astro.properties.json b/pages/properties/astro.properties.json new file mode 100644 index 0000000000..bc7db05d05 --- /dev/null +++ b/pages/properties/astro.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Astro", + "description": "Deploy an Astro site.", + "iconName": "astro", + "categories": ["Pages", "Astro"] +} From 92e51bbc9af19ecc05ac911b8ad6507e566297cc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 28 Oct 2022 10:35:26 +0000 Subject: [PATCH 118/185] Updating GHES workflows --- ci/properties/scala.properties.json | 6 ------ ci/scala.yml | 26 -------------------------- icons/scala.svg | 1 - 3 files changed, 33 deletions(-) delete mode 100644 ci/properties/scala.properties.json delete mode 100644 ci/scala.yml delete mode 100644 icons/scala.svg diff --git a/ci/properties/scala.properties.json b/ci/properties/scala.properties.json deleted file mode 100644 index 34dde26dda..0000000000 --- a/ci/properties/scala.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Scala", - "description": "Build and test a Scala project with SBT.", - "iconName": "scala", - "categories": ["Continuous integration", "Scala", "Java"] -} diff --git a/ci/scala.yml b/ci/scala.yml deleted file mode 100644 index 6f80a22cff..0000000000 --- a/ci/scala.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Scala CI - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -permissions: - contents: read - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: 'sbt' - - name: Run tests - run: sbt test diff --git a/icons/scala.svg b/icons/scala.svg deleted file mode 100644 index 80c5b99904..0000000000 --- a/icons/scala.svg +++ /dev/null @@ -1 +0,0 @@ - From 08abd1ed1419b6ebd3028c488e4c0f673018f7c4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 10 Nov 2022 13:45:36 +0000 Subject: [PATCH 119/185] Updating GHES workflows --- ci/ada.yml | 2 +- ci/cmake.yml | 4 ++-- ci/go-ossf-slsa3-publish.yml | 8 ++++---- ci/makefile.yml | 8 ++++---- ci/npm-grunt.yml | 2 +- ci/npm-gulp.yml | 2 +- ci/webpack.yml | 2 +- code-scanning/codeql.yml | 6 +++--- code-scanning/detekt.yml | 4 ++-- code-scanning/eslint.yml | 4 ++-- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/ci/ada.yml b/ci/ada.yml index 7e94b3855e..417ed2e006 100644 --- a/ci/ada.yml +++ b/ci/ada.yml @@ -17,7 +17,7 @@ jobs: - name: Set up GNAT toolchain run: > - sudo apt-get update && + sudo apt-get update && sudo apt-get install gnat gprbuild - name: Build diff --git a/ci/cmake.yml b/ci/cmake.yml index 6f06f756ca..95d7efd7cf 100644 --- a/ci/cmake.yml +++ b/ci/cmake.yml @@ -31,7 +31,7 @@ jobs: - name: Test working-directory: ${{github.workspace}}/build - # Execute tests defined by the CMake configuration. + # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ctest -C ${{env.BUILD_TYPE}} - + diff --git a/ci/go-ossf-slsa3-publish.yml b/ci/go-ossf-slsa3-publish.yml index a7388752f0..b357cc07d9 100644 --- a/ci/go-ossf-slsa3-publish.yml +++ b/ci/go-ossf-slsa3-publish.yml @@ -3,10 +3,10 @@ # separate terms of service, privacy policy, and support # documentation. -# This workflow lets you compile your Go project using a SLSA3 compliant builder. -# This workflow will generate a so-called "provenance" file describing the steps +# This workflow lets you compile your Go project using a SLSA3 compliant builder. +# This workflow will generate a so-called "provenance" file describing the steps # that were performed to generate the final binary. -# The project is an initiative of the OpenSSF (openssf.org) and is developed at +# The project is an initiative of the OpenSSF (openssf.org) and is developed at # https://github.com/slsa-framework/slsa-github-generator. # The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier. # For more information about SLSA and how it improves the supply-chain, visit slsa.dev. @@ -21,7 +21,7 @@ permissions: read-all jobs: # ======================================================================================================================================== - # Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project. + # Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project. # See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file #========================================================================================================================================= build: diff --git a/ci/makefile.yml b/ci/makefile.yml index 0156944cdc..1b53855ad3 100644 --- a/ci/makefile.yml +++ b/ci/makefile.yml @@ -13,15 +13,15 @@ jobs: steps: - uses: actions/checkout@v3 - + - name: configure run: ./configure - + - name: Install dependencies run: make - + - name: Run check run: make check - + - name: Run distcheck run: make distcheck diff --git a/ci/npm-grunt.yml b/ci/npm-grunt.yml index e39ddbfe7c..0bcbd1c9ff 100644 --- a/ci/npm-grunt.yml +++ b/ci/npm-grunt.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: node-version: [14.x, 16.x, 18.x] - + steps: - uses: actions/checkout@v3 diff --git a/ci/npm-gulp.yml b/ci/npm-gulp.yml index 7606deaf43..7d79002e88 100644 --- a/ci/npm-gulp.yml +++ b/ci/npm-gulp.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: node-version: [14.x, 16.x, 18.x] - + steps: - uses: actions/checkout@v3 diff --git a/ci/webpack.yml b/ci/webpack.yml index 0bc6406270..2b8b18a805 100644 --- a/ci/webpack.yml +++ b/ci/webpack.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: node-version: [14.x, 16.x, 18.x] - + steps: - uses: actions/checkout@v3 diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 34c5de72a1..3f0ecfbd5c 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -48,11 +48,11 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild @@ -61,7 +61,7 @@ jobs: # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. + # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | diff --git a/code-scanning/detekt.yml b/code-scanning/detekt.yml index 0c65813487..a13a5170a7 100644 --- a/code-scanning/detekt.yml +++ b/code-scanning/detekt.yml @@ -69,13 +69,13 @@ jobs: } } ' 1> gh_response.json - + DETEKT_RELEASE_SHA=$(jq --raw-output '.data.repository.release.releaseAssets.tagCommit.oid' gh_response.json) if [ $DETEKT_RELEASE_SHA != "37f0a1d006977512f1f216506cd695039607c3e5" ]; then echo "Release tag doesn't match expected commit SHA" exit 1 fi - + DETEKT_DOWNLOAD_URL=$(jq --raw-output '.data.repository.release.releaseAssets.nodes[0].downloadUrl' gh_response.json) echo "::set-output name=download_url::$DETEKT_DOWNLOAD_URL" diff --git a/code-scanning/eslint.yml b/code-scanning/eslint.yml index 54b01c839e..fcb4f217ac 100644 --- a/code-scanning/eslint.yml +++ b/code-scanning/eslint.yml @@ -25,7 +25,7 @@ jobs: permissions: contents: read security-events: write - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status steps: - name: Checkout code uses: actions/checkout@v3 @@ -39,7 +39,7 @@ jobs: run: npx eslint . --config .eslintrc.js --ext .js,.jsx,.ts,.tsx - --format @microsoft/eslint-formatter-sarif + --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif continue-on-error: true From f9115b34297eeaf21908bf36e8b5b5f3d0e94501 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 22 Nov 2022 21:04:49 +0000 Subject: [PATCH 120/185] Updating GHES workflows --- pages/astro.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 1d4ec5fcb8..54d46727d6 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -40,12 +40,10 @@ jobs: if [ -f "${{ github.workspace }}/yarn.lock" ]; then echo "::set-output name=manager::yarn" echo "::set-output name=command::install" - echo "::set-output name=runner::yarn" exit 0 elif [ -f "${{ github.workspace }}/package.json" ]; then echo "::set-output name=manager::npm" echo "::set-output name=command::ci" - echo "::set-output name=runner::npx --no-install" exit 0 else echo "Unable to determine packager manager" @@ -57,9 +55,14 @@ jobs: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json - - run: npm install && npm run build + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} working-directory: ${{ env.BUILD_PATH }} - - uses: actions/upload-pages-artifact@v1 + - name: Build with Astro + run: ${{ steps.detect-package-manager.outputs.manager }} run build + working-directory: ${{ env.BUILD_PATH }} + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 with: path: ${{ env.BUILD_PATH }}/dist From a8f630895cae09eafa3b5de80c48cf99892ddf4c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 22 Nov 2022 21:06:04 +0000 Subject: [PATCH 121/185] Updating GHES workflows --- pages/astro.yml | 8 ++++---- pages/gatsby.yml | 8 ++++---- pages/nextjs.yml | 12 ++++++------ pages/nuxtjs.yml | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 54d46727d6..9f845f3f86 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -38,12 +38,12 @@ jobs: id: detect-package-manager run: | if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "::set-output name=manager::yarn" - echo "::set-output name=command::install" + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT exit 0 elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "::set-output name=manager::npm" - echo "::set-output name=command::ci" + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine packager manager" diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 4f2857d8ca..7db9291386 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -39,12 +39,12 @@ jobs: id: detect-package-manager run: | if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "::set-output name=manager::yarn" - echo "::set-output name=command::install" + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT exit 0 elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "::set-output name=manager::npm" - echo "::set-output name=command::ci" + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine packager manager" diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 5c2bf67187..7e39f832ad 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -34,14 +34,14 @@ jobs: id: detect-package-manager run: | if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "::set-output name=manager::yarn" - echo "::set-output name=command::install" - echo "::set-output name=runner::yarn" + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=yarn" >> $GITHUB_OUTPUT exit 0 elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "::set-output name=manager::npm" - echo "::set-output name=command::ci" - echo "::set-output name=runner::npx --no-install" + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine packager manager" diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 4178f18125..660202e8d6 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -34,12 +34,12 @@ jobs: id: detect-package-manager run: | if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "::set-output name=manager::yarn" - echo "::set-output name=command::install" + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT exit 0 elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "::set-output name=manager::npm" - echo "::set-output name=command::ci" + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine packager manager" From 56cd01b1bbe6e03ae43b54699f40fb2edfd4a153 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 23 Nov 2022 15:22:50 +0000 Subject: [PATCH 122/185] Updating GHES workflows --- pages/astro.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/astro.yml b/pages/astro.yml index 9f845f3f86..77f29248e2 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -40,10 +40,12 @@ jobs: if [ -f "${{ github.workspace }}/yarn.lock" ]; then echo "manager=yarn" >> $GITHUB_OUTPUT echo "command=install" >> $GITHUB_OUTPUT + echo "runner=yarn" >> $GITHUB_OUTPUT exit 0 elif [ -f "${{ github.workspace }}/package.json" ]; then echo "manager=npm" >> $GITHUB_OUTPUT echo "command=ci" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine packager manager" @@ -55,11 +57,17 @@ jobs: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json + - name: Setup Pages + id: pages + uses: actions/configure-pages@v2 - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} working-directory: ${{ env.BUILD_PATH }} - name: Build with Astro - run: ${{ steps.detect-package-manager.outputs.manager }} run build + run: | + ${{ steps.detect-package-manager.outputs.runner }} astro build \ + --site "${{ steps.pages.outputs.origin }}" \ + --base "${{ steps.pages.outputs.base_path }}" working-directory: ${{ env.BUILD_PATH }} - name: Upload artifact uses: actions/upload-pages-artifact@v1 From dd6165f804096e40e322845e7c7388ed8713449c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 23 Nov 2022 19:25:09 +0000 Subject: [PATCH 123/185] Updating GHES workflows --- pages/gatsby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 7db9291386..a288d7da56 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -53,7 +53,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "18" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages From c7deaaa7a7abe8624e5c365f41a05c85c990bb2a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 8 Dec 2022 06:04:15 +0000 Subject: [PATCH 124/185] Updating GHES workflows --- ci/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/go.yml b/ci/go.yml index 4d95674ed1..e89f6c9fbf 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Build run: go build -v ./... From 8ca82d473a171a7f6c9680d713d68583ef047c5f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 13 Dec 2022 10:42:26 +0000 Subject: [PATCH 125/185] Updating GHES workflows --- code-scanning/detekt.yml | 118 ------------------ code-scanning/eslint.yml | 50 -------- .../properties/detekt.properties.json | 8 -- .../properties/eslint.properties.json | 12 -- icons/detekt.svg | 32 ----- icons/eslint.svg | 1 - 6 files changed, 221 deletions(-) delete mode 100644 code-scanning/detekt.yml delete mode 100644 code-scanning/eslint.yml delete mode 100644 code-scanning/properties/detekt.properties.json delete mode 100644 code-scanning/properties/eslint.properties.json delete mode 100644 icons/detekt.svg delete mode 100644 icons/eslint.svg diff --git a/code-scanning/detekt.yml b/code-scanning/detekt.yml deleted file mode 100644 index a13a5170a7..0000000000 --- a/code-scanning/detekt.yml +++ /dev/null @@ -1,118 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow performs a static analysis of your Kotlin source code using -# Detekt. -# -# Scans are triggered: -# 1. On every push to default and protected branches -# 2. On every Pull Request targeting the default branch -# 3. On a weekly schedule -# 4. Manually, on demand, via the "workflow_dispatch" event -# -# The workflow should work with no modifications, but you might like to use a -# later version of the Detekt CLI by modifing the $DETEKT_RELEASE_TAG -# environment variable. -name: Scan with Detekt - -on: - # Triggers the workflow on push or pull request events but only for default and protected branches - push: - branches: [ $default-branch, $protected-branches ] - pull_request: - branches: [ $default-branch ] - schedule: - - cron: $cron-weekly - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -env: - # Release tag associated with version of Detekt to be installed - # SARIF support (required for this workflow) was introduced in Detekt v1.15.0 - DETEKT_RELEASE_TAG: v1.15.0 - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "scan" - scan: - name: Scan - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - # Gets the download URL associated with the $DETEKT_RELEASE_TAG - - name: Get Detekt download URL - id: detekt_info - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh api graphql --field tagName=$DETEKT_RELEASE_TAG --raw-field query=' - query getReleaseAssetDownloadUrl($tagName: String!) { - repository(name: "detekt", owner: "detekt") { - release(tagName: $tagName) { - releaseAssets(name: "detekt", first: 1) { - nodes { - downloadUrl - } - } - tagCommit { - oid - } - } - } - } - ' 1> gh_response.json - - DETEKT_RELEASE_SHA=$(jq --raw-output '.data.repository.release.releaseAssets.tagCommit.oid' gh_response.json) - if [ $DETEKT_RELEASE_SHA != "37f0a1d006977512f1f216506cd695039607c3e5" ]; then - echo "Release tag doesn't match expected commit SHA" - exit 1 - fi - - DETEKT_DOWNLOAD_URL=$(jq --raw-output '.data.repository.release.releaseAssets.nodes[0].downloadUrl' gh_response.json) - echo "::set-output name=download_url::$DETEKT_DOWNLOAD_URL" - - # Sets up the detekt cli - - name: Setup Detekt - run: | - dest=$( mktemp -d ) - curl --request GET \ - --url ${{ steps.detekt_info.outputs.download_url }} \ - --silent \ - --location \ - --output $dest/detekt - chmod a+x $dest/detekt - echo $dest >> $GITHUB_PATH - - # Performs static analysis using Detekt - - name: Run Detekt - continue-on-error: true - run: | - detekt --input ${{ github.workspace }} --report sarif:${{ github.workspace }}/detekt.sarif.json - - # Modifies the SARIF output produced by Detekt so that absolute URIs are relative - # This is so we can easily map results onto their source files - # This can be removed once relative URI support lands in Detekt: https://git.io/JLBbA - - name: Make artifact location URIs relative - continue-on-error: true - run: | - echo "$( - jq \ - --arg github_workspace ${{ github.workspace }} \ - '. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \ - ${{ github.workspace }}/detekt.sarif.json - )" > ${{ github.workspace }}/detekt.sarif.json - - # Uploads results to GitHub repository using the upload-sarif action - - uses: github/codeql-action/upload-sarif@v2 - with: - # Path to SARIF file relative to the root of the repository - sarif_file: ${{ github.workspace }}/detekt.sarif.json - checkout_path: ${{ github.workspace }} diff --git a/code-scanning/eslint.yml b/code-scanning/eslint.yml deleted file mode 100644 index fcb4f217ac..0000000000 --- a/code-scanning/eslint.yml +++ /dev/null @@ -1,50 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# ESLint is a tool for identifying and reporting on patterns -# found in ECMAScript/JavaScript code. -# More details at https://github.com/eslint/eslint -# and https://eslint.org - -name: ESLint - -on: - push: - branches: [ $default-branch, $protected-branches ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ $default-branch ] - schedule: - - cron: $cron-weekly - -jobs: - eslint: - name: Run eslint scanning - runs-on: ubuntu-latest - permissions: - contents: read - security-events: write - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install ESLint - run: | - npm install eslint@8.10.0 - npm install @microsoft/eslint-formatter-sarif@2.1.7 - - - name: Run ESLint - run: npx eslint . - --config .eslintrc.js - --ext .js,.jsx,.ts,.tsx - --format @microsoft/eslint-formatter-sarif - --output-file eslint-results.sarif - continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true \ No newline at end of file diff --git a/code-scanning/properties/detekt.properties.json b/code-scanning/properties/detekt.properties.json deleted file mode 100644 index c133cc1354..0000000000 --- a/code-scanning/properties/detekt.properties.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "Detekt", - "creator": "Detekt", - "description": "Static code analysis for Kotlin", - "iconName": "detekt", - "categories": ["Code Scanning", "Kotlin"], - "enterprise": false -} diff --git a/code-scanning/properties/eslint.properties.json b/code-scanning/properties/eslint.properties.json deleted file mode 100644 index 2a1271f845..0000000000 --- a/code-scanning/properties/eslint.properties.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "ESLint", - "description": "A tool for identifying and reporting the problems found in ECMAScript/JavaScript code.", - "iconName": "eslint", - "enterprise": false, - "categories": [ - "Code Scanning", - "JavaScript", - "EcmaScript", - "TypeScript" - ] -} diff --git a/icons/detekt.svg b/icons/detekt.svg deleted file mode 100644 index 152617078c..0000000000 --- a/icons/detekt.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/eslint.svg b/icons/eslint.svg deleted file mode 100644 index 23964aa103..0000000000 --- a/icons/eslint.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 97a60b2516c4355d42a85fef4c18126e725b5d7c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 13 Dec 2022 12:32:36 +0000 Subject: [PATCH 126/185] Updating GHES workflows --- code-scanning/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 3f0ecfbd5c..002e424e00 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -34,6 +34,8 @@ jobs: matrix: language: [ $detected-codeql-languages ] # CodeQL supports [ $supported-codeql-languages ] + # Use only 'java' to analyze code written in Java, Kotlin or both + # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: From 7eefe684f79c6ebef29c019691eae9aaad4285e3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 14 Dec 2022 13:39:33 +0000 Subject: [PATCH 127/185] Updating GHES workflows --- code-scanning/properties/codeql.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/properties/codeql.properties.json b/code-scanning/properties/codeql.properties.json index 8ee80b42cf..f5e78bf53a 100644 --- a/code-scanning/properties/codeql.properties.json +++ b/code-scanning/properties/codeql.properties.json @@ -2,7 +2,7 @@ "name": "CodeQL Analysis", "creator": "GitHub", "enterprise": true, - "description": "Security analysis from GitHub for C, C++, C#, Go, Java, JavaScript, TypeScript, Python, and Ruby developers.", + "description": "Security analysis from GitHub for C, C++, C#, Go, Java, JavaScript, TypeScript, Python, Ruby and Kotlin developers.", "iconName": "octicon mark-github", - "categories": ["Code Scanning", "C", "C++", "C#", "Go", "Java", "JavaScript", "TypeScript", "Python", "Ruby"] + "categories": ["Code Scanning", "C", "C++", "C#", "Go", "Java", "JavaScript", "TypeScript", "Python", "Ruby", "Kotlin"] } From 1acff35e6b40ab2028f3f352eb553e5f1465587a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 14 Dec 2022 21:06:03 +0000 Subject: [PATCH 128/185] Updating GHES workflows --- pages/hugo.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/hugo.yml b/pages/hugo.yml index f273fb2068..05a5b50a38 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -30,12 +30,14 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.102.3 + HUGO_VERSION: 0.108.0 steps: - name: Install Hugo CLI run: | - wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \ + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass Embedded + run: sudo snap install dart-sass-embedded - name: Checkout uses: actions/checkout@v3 with: @@ -43,6 +45,8 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v2 + - name: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules From 443384d6359bd4e6139436eca37598b1a6c4f885 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 3 Jan 2023 08:12:59 +0000 Subject: [PATCH 129/185] Updating GHES workflows --- ci/python-package-conda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml index 57940bdb0c..384f9b727c 100644 --- a/ci/python-package-conda.yml +++ b/ci/python-package-conda.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v3 with: - python-version: 3.10 + python-version: '3.10' - name: Add conda to system path run: | # $CONDA is an environment variable pointing to the root of the miniconda directory From 9124a2783a7bda5f415aff90c1aeba181765482a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 3 Jan 2023 08:18:57 +0000 Subject: [PATCH 130/185] Updating GHES workflows --- ci/generator-generic-ossf-slsa3-publish.yml | 8 +++----- ci/go-ossf-slsa3-publish.yml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/generator-generic-ossf-slsa3-publish.yml b/ci/generator-generic-ossf-slsa3-publish.yml index a249449a5a..a36e782cbf 100644 --- a/ci/generator-generic-ossf-slsa3-publish.yml +++ b/ci/generator-generic-ossf-slsa3-publish.yml @@ -16,8 +16,6 @@ on: release: types: [created] -permissions: read-all - jobs: build: runs-on: ubuntu-latest @@ -46,7 +44,7 @@ jobs: # provenance for. # # ======================================================== - - name: Generate subject + - name: Generate subject for provenance id: hash run: | set -euo pipefail @@ -54,7 +52,7 @@ jobs: # List the artifacts the provenance will refer to. files=$(ls artifact*) # Generate the subjects (base64 encoded). - echo "::set-output name=digests::$(sha256sum $files | base64 -w0)" + echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}" provenance: needs: [build] @@ -62,7 +60,7 @@ jobs: actions: read # To read the workflow path. id-token: write # To sign the provenance. contents: write # To add assets to a release. - uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.2.0 + uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0 with: base64-subjects: "${{ needs.build.outputs.digests }}" upload-assets: true # Optional: Upload to a new release diff --git a/ci/go-ossf-slsa3-publish.yml b/ci/go-ossf-slsa3-publish.yml index b357cc07d9..79ea193f75 100644 --- a/ci/go-ossf-slsa3-publish.yml +++ b/ci/go-ossf-slsa3-publish.yml @@ -29,7 +29,7 @@ jobs: id-token: write # To sign. contents: write # To upload release assets. actions: read # To read workflow path. - uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.0 + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.4.0 with: go-version: 1.17 # ============================================================================================================= From 0e88c801eba75088b178f9f5118ad0bc7db08360 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 23 Jan 2023 17:32:59 +0000 Subject: [PATCH 131/185] Updating GHES workflows --- code-scanning/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 002e424e00..f0c3bebfae 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -67,8 +67,8 @@ jobs: # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 From e1cecc376a372142d318a2a3ef7a98a528438bea Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 26 Jan 2023 00:44:29 +0000 Subject: [PATCH 132/185] Updating GHES workflows --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 77f29248e2..1b6478fd32 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -59,7 +59,7 @@ jobs: cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json - name: Setup Pages id: pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} working-directory: ${{ env.BUILD_PATH }} diff --git a/pages/gatsby.yml b/pages/gatsby.yml index a288d7da56..34f15dd44b 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -57,7 +57,7 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 with: # Automatically inject pathPrefix in your Gatsby configuration file. # diff --git a/pages/hugo.yml b/pages/hugo.yml index 05a5b50a38..d4363fd7b2 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -44,7 +44,7 @@ jobs: submodules: recursive - name: Setup Pages id: pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 8c7a207703..792aa187fa 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -28,7 +28,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 7e39f832ad..5bd6c150bf 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -53,7 +53,7 @@ jobs: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 with: # Automatically inject basePath in your Next.js configuration file and disable # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 660202e8d6..e7d8891cbc 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -51,7 +51,7 @@ jobs: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 with: # Automatically inject router.base in your Nuxt configuration file and set # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). diff --git a/pages/static.yml b/pages/static.yml index 9e0e871522..d6b719218e 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -31,7 +31,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: From 14591aecf748c659bc227384799639edcf8a7cfc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 9 Mar 2023 17:55:38 +0000 Subject: [PATCH 133/185] Updating GHES workflows --- icons/mdbook.svg | 22 +++++++++ pages/mdbook.yml | 62 +++++++++++++++++++++++++ pages/properties/mdbook.properties.json | 6 +++ 3 files changed, 90 insertions(+) create mode 100644 icons/mdbook.svg create mode 100644 pages/mdbook.yml create mode 100644 pages/properties/mdbook.properties.json diff --git a/icons/mdbook.svg b/icons/mdbook.svg new file mode 100644 index 0000000000..90e0ea58bd --- /dev/null +++ b/icons/mdbook.svg @@ -0,0 +1,22 @@ + + + + + diff --git a/pages/mdbook.yml b/pages/mdbook.yml new file mode 100644 index 0000000000..57f3636d60 --- /dev/null +++ b/pages/mdbook.yml @@ -0,0 +1,62 @@ +# Sample workflow for building and deploying a mdbook site to GitHub Pages +# +# To get started with mdbook see: https://rust-lang.github.io/mdBook/index.html +# +name: Deploy mdbook site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: [$default-branch] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true +jobs: + # This workflow contains a single job called "build" + build: + env: + MDBOOK_VERSION : 0.4.21 + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: install mdbook + run: | + curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh + rustup update + cargo install --version ${MDBOOK_VERSION} mdbook + - name: Setup Pages + id: pages + uses: actions/configure-pages@v1 + - name: Build with mdbook + run: mdbook build + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./book + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/pages/properties/mdbook.properties.json b/pages/properties/mdbook.properties.json new file mode 100644 index 0000000000..8617e7f302 --- /dev/null +++ b/pages/properties/mdbook.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Mdbook", + "description": "Package a Mdbook site.", + "iconName": "mdbook", + "categories": ["Pages", "Mdbook"] +} From b2167d7786c4e359a07168dc8cb8093c9f5008a5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 9 Mar 2023 19:11:51 +0000 Subject: [PATCH 134/185] Updating GHES workflows --- pages/mdbook.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 57f3636d60..216f1862a6 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -38,14 +38,14 @@ jobs: # Runs a single command using the runners shell - name: install mdbook run: | - curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh + curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh rustup update cargo install --version ${MDBOOK_VERSION} mdbook - name: Setup Pages id: pages uses: actions/configure-pages@v1 - name: Build with mdbook - run: mdbook build + run: mdbook build - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: From b35bf7d6f63570984dcfba42df8f0c9137105f9e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 10 Mar 2023 00:58:03 +0000 Subject: [PATCH 135/185] Updating GHES workflows --- pages/properties/mdbook.properties.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/properties/mdbook.properties.json b/pages/properties/mdbook.properties.json index 8617e7f302..2a4fe8ded0 100644 --- a/pages/properties/mdbook.properties.json +++ b/pages/properties/mdbook.properties.json @@ -1,6 +1,6 @@ { - "name": "Mdbook", - "description": "Package a Mdbook site.", + "name": "mdBook", + "description": "Package a site using mdBook.", "iconName": "mdbook", - "categories": ["Pages", "Mdbook"] + "categories": ["Pages", "mdBook"] } From f64df68890eabaf9f201588ebdc5727418cea4e3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 10 Mar 2023 12:38:21 +0000 Subject: [PATCH 136/185] Updating GHES workflows --- pages/mdbook.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 216f1862a6..b4f05856ed 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -1,8 +1,8 @@ -# Sample workflow for building and deploying a mdbook site to GitHub Pages +# Sample workflow for building and deploying a mdBook site to GitHub Pages # -# To get started with mdbook see: https://rust-lang.github.io/mdBook/index.html +# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html # -name: Deploy mdbook site to Pages +name: Deploy mdBook site to Pages on: # Runs on pushes targeting the default branch From 21cc118c359f1ef1c88a35f897209b2f5ae7b6b4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 14 Mar 2023 05:26:45 +0000 Subject: [PATCH 137/185] Updating GHES workflows --- icons/mdbook.svg | 5 ----- 1 file changed, 5 deletions(-) diff --git a/icons/mdbook.svg b/icons/mdbook.svg index 90e0ea58bd..c61e0a6138 100644 --- a/icons/mdbook.svg +++ b/icons/mdbook.svg @@ -1,9 +1,4 @@ - Date: Tue, 14 Mar 2023 16:06:49 +0000 Subject: [PATCH 139/185] Updating GHES workflows --- pages/astro.yml | 5 +++-- pages/gatsby.yml | 5 +++-- pages/hugo.yml | 5 +++-- pages/jekyll-gh-pages.yml | 5 +++-- pages/mdbook.yml | 5 +++-- pages/nextjs.yml | 5 +++-- pages/nuxtjs.yml | 5 +++-- pages/static.yml | 5 +++-- 8 files changed, 24 insertions(+), 16 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 1b6478fd32..dbe49dbf81 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -18,10 +18,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false env: BUILD_PATH: "." # default value when not using subfolders diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 34f15dd44b..fbe9e708a9 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -18,10 +18,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false # Default to bash defaults: diff --git a/pages/hugo.yml b/pages/hugo.yml index d4363fd7b2..343128472d 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -15,10 +15,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false # Default to bash defaults: diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 792aa187fa..7d18dc80d3 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -15,10 +15,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: # Build job diff --git a/pages/mdbook.yml b/pages/mdbook.yml index ddff0debd2..191aa484d6 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -18,10 +18,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: # Build job diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 5bd6c150bf..bf15a7135e 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -18,10 +18,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: # Build job diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index e7d8891cbc..3ded228a0a 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -18,10 +18,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: # Build job diff --git a/pages/static.yml b/pages/static.yml index d6b719218e..c0cfa3581f 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -15,10 +15,11 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: # Single deploy job since we're just deploying From 8db6f2a36e5e8f53a1947ae91cc2cda168952134 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 27 Mar 2023 22:15:55 +0000 Subject: [PATCH 140/185] Updating GHES workflows --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/mdbook.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index dbe49dbf81..8377ee483a 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -85,4 +85,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index fbe9e708a9..8303af4108 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pages/hugo.yml b/pages/hugo.yml index 343128472d..fd6c4b4631 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 7d18dc80d3..851f2ce28f 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 191aa484d6..78d664ebf0 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index bf15a7135e..5dd673dfa7 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -92,4 +92,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 3ded228a0a..1ec761a8de 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/pages/static.yml b/pages/static.yml index c0cfa3581f..43bec60eaf 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -40,4 +40,4 @@ jobs: path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 From 1002117c0c041494c10f87f1da81b7c471b04c29 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 27 Mar 2023 22:19:59 +0000 Subject: [PATCH 141/185] Updating GHES workflows --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 8377ee483a..42789585f4 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -49,7 +49,7 @@ jobs: echo "runner=npx --no-install" >> $GITHUB_OUTPUT exit 0 else - echo "Unable to determine packager manager" + echo "Unable to determine package manager" exit 1 fi - name: Setup Node diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 8303af4108..1fe2d24de3 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -48,7 +48,7 @@ jobs: echo "command=ci" >> $GITHUB_OUTPUT exit 0 else - echo "Unable to determine packager manager" + echo "Unable to determine package manager" exit 1 fi - name: Setup Node diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 5dd673dfa7..81073e6ac1 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -45,7 +45,7 @@ jobs: echo "runner=npx --no-install" >> $GITHUB_OUTPUT exit 0 else - echo "Unable to determine packager manager" + echo "Unable to determine package manager" exit 1 fi - name: Setup Node diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 1ec761a8de..ddf8f4f271 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -43,7 +43,7 @@ jobs: echo "command=ci" >> $GITHUB_OUTPUT exit 0 else - echo "Unable to determine packager manager" + echo "Unable to determine package manager" exit 1 fi - name: Setup Node From 3f164030807dcdfcef32070dc514d5873ae7be6e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 18 Apr 2023 16:22:05 +0000 Subject: [PATCH 142/185] Updating GHES workflows --- automation/manual.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automation/manual.yml b/automation/manual.yml index 4a7131e812..11b2e3558a 100644 --- a/automation/manual.yml +++ b/automation/manual.yml @@ -15,6 +15,8 @@ on: default: 'World' # Input has to be provided for the workflow to run required: true + # The data type of the input + type: string # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -27,4 +29,4 @@ jobs: steps: # Runs a single command using the runners shell - name: Send greeting - run: echo "Hello ${{ github.event.inputs.name }}" \ No newline at end of file + run: echo "Hello ${{ inputs.name }}" From d85ab73e08c87b58014d4063eb8904e2b5269a98 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 18 Apr 2023 18:45:37 +0000 Subject: [PATCH 143/185] Updating GHES workflows --- code-scanning/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index f0c3bebfae..bd394aeae5 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -23,7 +23,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} permissions: actions: read contents: read @@ -51,7 +51,7 @@ jobs: # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality From 22f025c6ab44f7acc48d0af69c39d2faaf45b3b5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 31 May 2023 19:17:44 +0000 Subject: [PATCH 144/185] Updating GHES workflows --- code-scanning/codeql.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index bd394aeae5..e901a24072 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -24,6 +24,7 @@ jobs: analyze: name: Analyze runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: actions: read contents: read From 91bc191de02606a654eae02cbc0d67d6e4bdc4cf Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 2 Jun 2023 08:51:39 +0000 Subject: [PATCH 145/185] Updating GHES workflows --- code-scanning/properties/codeql.properties.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/properties/codeql.properties.json b/code-scanning/properties/codeql.properties.json index f5e78bf53a..8aaa8f54be 100644 --- a/code-scanning/properties/codeql.properties.json +++ b/code-scanning/properties/codeql.properties.json @@ -2,7 +2,7 @@ "name": "CodeQL Analysis", "creator": "GitHub", "enterprise": true, - "description": "Security analysis from GitHub for C, C++, C#, Go, Java, JavaScript, TypeScript, Python, Ruby and Kotlin developers.", + "description": "Security analysis from GitHub for C, C++, C#, Go, Java, JavaScript, TypeScript, Python, Ruby, Kotlin and Swift developers.", "iconName": "octicon mark-github", - "categories": ["Code Scanning", "C", "C++", "C#", "Go", "Java", "JavaScript", "TypeScript", "Python", "Ruby", "Kotlin"] + "categories": ["Code Scanning", "C", "C++", "C#", "Go", "Java", "JavaScript", "TypeScript", "Python", "Ruby", "Kotlin", "Swift"] } From 7942bd898b172f8b698522147a7ded9f1b5a1c76 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 13 Jun 2023 18:05:57 +0000 Subject: [PATCH 146/185] Updating GHES workflows --- code-scanning/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index e901a24072..0b8af3397d 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -56,7 +56,7 @@ jobs: # queries: security-extended,security-and-quality - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v2 From 82719ed8aefe7a0078dbad344d3eec6040822602 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 12 Jul 2023 16:40:18 +0000 Subject: [PATCH 147/185] Updating GHES workflows --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/mdbook.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 42789585f4..ccbae47b42 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -71,7 +71,7 @@ jobs: --base "${{ steps.pages.outputs.base_path }}" working-directory: ${{ env.BUILD_PATH }} - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ${{ env.BUILD_PATH }}/dist diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 1fe2d24de3..676740b61b 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -80,7 +80,7 @@ jobs: PREFIX_PATHS: 'true' run: ${{ steps.detect-package-manager.outputs.manager }} run build - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ./public diff --git a/pages/hugo.yml b/pages/hugo.yml index fd6c4b4631..9e0fb88348 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -58,7 +58,7 @@ jobs: --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ./public diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 851f2ce28f..044e34cdb1 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -36,7 +36,7 @@ jobs: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 # Deployment job deploy: diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 78d664ebf0..0fae7a4a27 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -43,7 +43,7 @@ jobs: - name: Build with mdBook run: mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ./book diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 81073e6ac1..308b76e319 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -78,7 +78,7 @@ jobs: - name: Static HTML export with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next export - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ./out diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index ddf8f4f271..2951136868 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -73,7 +73,7 @@ jobs: - name: Static HTML export with Nuxt run: ${{ steps.detect-package-manager.outputs.manager }} run generate - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ./dist diff --git a/pages/static.yml b/pages/static.yml index 43bec60eaf..31ac4283a2 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -34,7 +34,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: # Upload entire repository path: '.' From c34a432b1770aaf17f962b0ee8a47021cd9195a6 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 13 Jul 2023 14:11:22 +0000 Subject: [PATCH 148/185] Updating GHES workflows --- pages/hugo.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/hugo.yml b/pages/hugo.yml index 9e0fb88348..b31229572b 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -31,14 +31,14 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.108.0 + HUGO_VERSION: 0.114.0 steps: - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb - - name: Install Dart Sass Embedded - run: sudo snap install dart-sass-embedded + - name: Install Dart Sass + run: sudo snap install dart-sass - name: Checkout uses: actions/checkout@v3 with: From 9f31adb6cc1c8d72c9809c5f10afa1db16dce4fd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 13 Jul 2023 14:40:36 +0000 Subject: [PATCH 149/185] Updating GHES workflows --- code-scanning/codeql.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 0b8af3397d..f53c061a3f 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -23,6 +23,11 @@ on: jobs: analyze: name: Analyze + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners + # Consider using larger runners for possible analysis time improvements. runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: From 74530145010fe35ef3dbb967b406b61156a46474 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 13 Jul 2023 14:42:30 +0000 Subject: [PATCH 150/185] Updating GHES workflows --- ci/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/go.yml b/ci/go.yml index e89f6c9fbf..9f74f8704d 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -17,9 +17,9 @@ jobs: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: '1.20' - name: Build run: go build -v ./... From e529eb20edb690634a46cfb02877c574188dd3d4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 13 Jul 2023 15:47:27 +0000 Subject: [PATCH 151/185] Updating GHES workflows --- ci/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/python-package.yml b/ci/python-package.yml index de579a3d4e..249ceef8bb 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 From bcdba11782a1d8166aba450984a84d0346617669 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 11 Aug 2023 00:05:55 +0000 Subject: [PATCH 152/185] Updating GHES workflows --- ci/cmake-multi-platform.yml | 75 +++++++++++++++++++ ci/{cmake.yml => cmake-single-platform.yml} | 4 +- .../cmake-multi-platform.properties.json | 6 ++ .../cmake-single-platform.properties.json | 6 ++ ci/properties/cmake.properties.json | 6 -- 5 files changed, 90 insertions(+), 7 deletions(-) create mode 100644 ci/cmake-multi-platform.yml rename ci/{cmake.yml => cmake-single-platform.yml} (83%) create mode 100644 ci/properties/cmake-multi-platform.properties.json create mode 100644 ci/properties/cmake-single-platform.properties.json delete mode 100644 ci/properties/cmake.properties.json diff --git a/ci/cmake-multi-platform.yml b/ci/cmake-multi-platform.yml new file mode 100644 index 0000000000..8762e9f5c3 --- /dev/null +++ b/ci/cmake-multi-platform.yml @@ -0,0 +1,75 @@ +# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform. +# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml +name: CMake on multiple platforms + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + # Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. + fail-fast: false + + # Set up a matrix to run the following 3 configurations: + # 1. + # 2. + # 3. + # + # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. + matrix: + os: [ubuntu-latest, windows-latest] + build_type: [Release] + c_compiler: [gcc, clang, cl] + include: + - os: windows-latest + c_compiler: cl + cpp_compiler: cl + - os: ubuntu-latest + c_compiler: gcc + cpp_compiler: g++ + - os: ubuntu-latest + c_compiler: clang + cpp_compiler: clang++ + exclude: + - os: windows-latest + c_compiler: gcc + - os: windows-latest + c_compiler: clang + - os: ubuntu-latest + c_compiler: cl + + steps: + - uses: actions/checkout@v3 + + - name: Set reusable strings + # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. + id: strings + shell: bash + run: | + echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" + + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: > + cmake -B ${{ steps.strings.outputs.build-output-dir }} + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -S ${{ github.workspace }} + + - name: Build + # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). + run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} + + - name: Test + working-directory: ${{ steps.strings.outputs.build-output-dir }} + # Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest --build-config ${{ matrix.build_type }} diff --git a/ci/cmake.yml b/ci/cmake-single-platform.yml similarity index 83% rename from ci/cmake.yml rename to ci/cmake-single-platform.yml index 95d7efd7cf..ccc318b5d6 100644 --- a/ci/cmake.yml +++ b/ci/cmake-single-platform.yml @@ -1,4 +1,6 @@ -name: CMake +# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. +# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml +name: CMake on a single platform on: push: diff --git a/ci/properties/cmake-multi-platform.properties.json b/ci/properties/cmake-multi-platform.properties.json new file mode 100644 index 0000000000..59d1b47336 --- /dev/null +++ b/ci/properties/cmake-multi-platform.properties.json @@ -0,0 +1,6 @@ +{ + "name": "CMake based, multi-platform projects", + "description": "Build and test a CMake based project on multiple platforms.", + "iconName": "cmake", + "categories": ["Continuous integration", "C", "C++"] +} diff --git a/ci/properties/cmake-single-platform.properties.json b/ci/properties/cmake-single-platform.properties.json new file mode 100644 index 0000000000..c0aa074537 --- /dev/null +++ b/ci/properties/cmake-single-platform.properties.json @@ -0,0 +1,6 @@ +{ + "name": "CMake based, single-platform projects", + "description": "Build and test a CMake based project on a single-platform.", + "iconName": "cmake", + "categories": ["Continuous integration", "C", "C++"] +} diff --git a/ci/properties/cmake.properties.json b/ci/properties/cmake.properties.json deleted file mode 100644 index a7f5d0670d..0000000000 --- a/ci/properties/cmake.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "CMake based projects", - "description": "Build and test a CMake based project.", - "iconName": "cmake", - "categories": ["Continuous integration", "C", "C++"] -} \ No newline at end of file From 0059fec5f82885de799c0e48e46f9c2fbd98c9fc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 3 Oct 2023 07:58:37 +0000 Subject: [PATCH 153/185] Updating GHES workflows --- code-scanning/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index f53c061a3f..8a5d2d9041 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -40,8 +40,8 @@ jobs: matrix: language: [ $detected-codeql-languages ] # CodeQL supports [ $supported-codeql-languages ] - # Use only 'java' to analyze code written in Java, Kotlin or both - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both + # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: From fc1b4b5a61a63d4f6e620a8085cd3265130ceb95 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 4 Dec 2023 11:03:32 +0000 Subject: [PATCH 154/185] Updating GHES workflows --- code-scanning/codeql.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 8a5d2d9041..8cdc69c5dd 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -15,8 +15,7 @@ on: push: branches: [ $default-branch, $protected-branches ] pull_request: - # The branches below must be a subset of the branches above - branches: [ $default-branch ] + branches: [ $default-branch, $protected-branches ] schedule: - cron: $cron-weekly From 4e543498500f7a2e1c1e533470338e097fcc9a9b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 4 Dec 2023 21:54:19 +0000 Subject: [PATCH 155/185] Updating GHES workflows --- pages/astro.yml | 10 +++++----- pages/gatsby.yml | 10 +++++----- pages/hugo.yml | 8 ++++---- pages/jekyll-gh-pages.yml | 6 +++--- pages/mdbook.yml | 8 ++++---- pages/nextjs.yml | 10 +++++----- pages/nuxtjs.yml | 10 +++++----- pages/static.yml | 6 +++--- 8 files changed, 34 insertions(+), 34 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index ccbae47b42..8e2e7aa7ec 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Detect package manager id: detect-package-manager run: | @@ -53,14 +53,14 @@ jobs: exit 1 fi - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json - name: Setup Pages id: pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} working-directory: ${{ env.BUILD_PATH }} @@ -85,4 +85,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 676740b61b..54781ade58 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Detect package manager id: detect-package-manager run: | @@ -52,13 +52,13 @@ jobs: exit 1 fi - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "18" + node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 with: # Automatically inject pathPrefix in your Gatsby configuration file. # @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 diff --git a/pages/hugo.yml b/pages/hugo.yml index b31229572b..d8d99b3bcc 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -31,7 +31,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.114.0 + HUGO_VERSION: 0.120.4 steps: - name: Install Hugo CLI run: | @@ -40,12 +40,12 @@ jobs: - name: Install Dart Sass run: sudo snap install dart-sass - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Setup Pages id: pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 044e34cdb1..88328bdded 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -27,9 +27,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 0fae7a4a27..0abd3f6e78 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -29,9 +29,9 @@ jobs: build: runs-on: ubuntu-latest env: - MDBOOK_VERSION: 0.4.21 + MDBOOK_VERSION: 0.4.36 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install mdBook run: | curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh @@ -39,7 +39,7 @@ jobs: cargo install --version ${MDBOOK_VERSION} mdbook - name: Setup Pages id: pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Build with mdBook run: mdbook build - name: Upload artifact @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 308b76e319..42b88a7ad7 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Detect package manager id: detect-package-manager run: | @@ -49,12 +49,12 @@ jobs: exit 1 fi - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 with: # Automatically inject basePath in your Next.js configuration file and disable # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). @@ -92,4 +92,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 2951136868..bc945612ad 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Detect package manager id: detect-package-manager run: | @@ -47,12 +47,12 @@ jobs: exit 1 fi - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 with: # Automatically inject router.base in your Nuxt configuration file and set # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 diff --git a/pages/static.yml b/pages/static.yml index 31ac4283a2..43aa997552 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -30,9 +30,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: @@ -40,4 +40,4 @@ jobs: path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v3 From f5e9c6837693a0b02db4da75324de7bf9518810b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 14 Dec 2023 13:02:11 +0000 Subject: [PATCH 156/185] Updating GHES workflows --- code-scanning/codeql.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 8cdc69c5dd..ca605c9057 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -45,11 +45,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -63,7 +63,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -76,6 +76,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" From 1a4b2218a89dfdf30fa832f4437ddf65e3053323 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 22 Dec 2023 19:39:02 +0000 Subject: [PATCH 157/185] Updating GHES workflows --- pages/astro.yml | 4 ++-- pages/gatsby.yml | 4 ++-- pages/hugo.yml | 4 ++-- pages/jekyll-gh-pages.yml | 4 ++-- pages/mdbook.yml | 4 ++-- pages/nextjs.yml | 4 ++-- pages/nuxtjs.yml | 4 ++-- pages/static.yml | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 8e2e7aa7ec..0929af5655 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -71,7 +71,7 @@ jobs: --base "${{ steps.pages.outputs.base_path }}" working-directory: ${{ env.BUILD_PATH }} - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ${{ env.BUILD_PATH }}/dist @@ -85,4 +85,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 54781ade58..7d5c342d89 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -80,7 +80,7 @@ jobs: PREFIX_PATHS: 'true' run: ${{ steps.detect-package-manager.outputs.manager }} run build - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./public @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/hugo.yml b/pages/hugo.yml index d8d99b3bcc..6e40b040b0 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -58,7 +58,7 @@ jobs: --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./public @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 88328bdded..8d5586c325 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -36,7 +36,7 @@ jobs: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 # Deployment job deploy: @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 0abd3f6e78..6ea654d37b 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -43,7 +43,7 @@ jobs: - name: Build with mdBook run: mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./book @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 42b88a7ad7..e855af2585 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -78,7 +78,7 @@ jobs: - name: Static HTML export with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next export - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./out @@ -92,4 +92,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index bc945612ad..f133bb1f96 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -73,7 +73,7 @@ jobs: - name: Static HTML export with Nuxt run: ${{ steps.detect-package-manager.outputs.manager }} run generate - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./dist @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/static.yml b/pages/static.yml index 43aa997552..819974a2c2 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -34,10 +34,10 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 From 6c250eb62e8a0413a3945cd5ca2f27bec671ecd8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 10 Jan 2024 22:12:47 +0000 Subject: [PATCH 158/185] Updating GHES workflows --- code-scanning/codeql.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index ca605c9057..808449d6b0 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -30,9 +30,12 @@ jobs: runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: + # required for all workflows + security-events: write + + # only required for workflows in private repositories actions: read contents: read - security-events: write strategy: fail-fast: false From 5b1bc4080e8c6020056b2479a92b999af209bdfc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 29 Jan 2024 20:29:26 +0000 Subject: [PATCH 159/185] Updating GHES workflows --- pages/gatsby.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 7d5c342d89..c82a2f7aa3 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -65,7 +65,7 @@ jobs: # You may remove this line if you want to manage the configuration yourself. static_site_generator: gatsby - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | public diff --git a/pages/nextjs.yml b/pages/nextjs.yml index e855af2585..f91a07d80a 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -62,7 +62,7 @@ jobs: # You may remove this line if you want to manage the configuration yourself. static_site_generator: next - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | .next/cache diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index f133bb1f96..5ceb0e8d81 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -60,7 +60,7 @@ jobs: # You may remove this line if you want to manage the configuration yourself. static_site_generator: nuxt - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | dist From 1321cdf994fe36d4578936939437e986ed0f9999 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 12 Mar 2024 19:08:45 +0000 Subject: [PATCH 160/185] Updating GHES workflows --- ci/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/dotnet.yml b/ci/dotnet.yml index f11f05069d..b869d6ef84 100644 --- a/ci/dotnet.yml +++ b/ci/dotnet.yml @@ -15,11 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build From 3f976c4682f027526cd42f42e8d0a64843dee9cd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 25 Mar 2024 23:27:10 +0000 Subject: [PATCH 161/185] Updating GHES workflows --- pages/nextjs.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pages/nextjs.yml b/pages/nextjs.yml index f91a07d80a..74e57fceb5 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -73,10 +73,8 @@ jobs: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Build with Next.js + - name: Build and Static HTML export with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - - name: Static HTML export with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next export - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: From d5665549c5c7374d52d526cdedceedb9ff63703f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 26 Mar 2024 13:13:29 +0000 Subject: [PATCH 162/185] Updating GHES workflows --- code-scanning/codeql.yml | 43 +++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 808449d6b0..cb883a9bb7 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -21,7 +21,7 @@ on: jobs: analyze: - name: Analyze + name: Analyze (${{ matrix.language }}) # Runner size impacts CodeQL analysis time. To learn more, please see: # - https://gh.io/recommended-hardware-resources-for-running-codeql # - https://gh.io/supported-runners-and-hardware-resources @@ -40,12 +40,15 @@ jobs: strategy: fail-fast: false matrix: - language: [ $detected-codeql-languages ] - # CodeQL supports [ $supported-codeql-languages ] - # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - + $codeql-languages-matrix + # CodeQL supports the following values keywords for 'language': $supported-codeql-languages + # Use `c-cpp` to analyze code written in C, C++ or both + # Use 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis, + # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. + # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how + # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages steps: - name: Checkout repository uses: actions/checkout@v4 @@ -55,6 +58,7 @@ jobs: uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. @@ -62,21 +66,20 @@ jobs: # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - + # If the analyze step fails for one of the languages you are analyzing with + # "We were unable to automatically build your code", modify the matrix above + # to set the build mode to "manual" for that language. Then modify this step + # to build your code. # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + - if: matrix.build-mode == 'manual' + run: | + echo 'If you are using a "manual" build mode for one or more of the' \ + 'languages you are analyzing, replace this with the commands to build' \ + 'your code, for example:' + echo ' make bootstrap' + echo ' make release' + exit 1 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 From 5b42f56a6a9aadde807bd9ca0de67f489b399724 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 27 Mar 2024 17:52:17 +0000 Subject: [PATCH 163/185] Updating GHES workflows --- pages/hugo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/hugo.yml b/pages/hugo.yml index 6e40b040b0..1061a74bd7 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -31,7 +31,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.120.4 + HUGO_VERSION: 0.124.1 steps: - name: Install Hugo CLI run: | From 9eade7871eda601c2502778a2867bb0d3ce4fcd0 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 28 Mar 2024 03:40:28 +0000 Subject: [PATCH 164/185] Updating GHES workflows --- pages/astro.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/astro.yml b/pages/astro.yml index 0929af5655..03044be19e 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -42,11 +42,13 @@ jobs: echo "manager=yarn" >> $GITHUB_OUTPUT echo "command=install" >> $GITHUB_OUTPUT echo "runner=yarn" >> $GITHUB_OUTPUT + echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT exit 0 elif [ -f "${{ github.workspace }}/package.json" ]; then echo "manager=npm" >> $GITHUB_OUTPUT echo "command=ci" >> $GITHUB_OUTPUT echo "runner=npx --no-install" >> $GITHUB_OUTPUT + echo "lockfile=package-lock.json" >> $GITHUB_OUTPUT exit 0 else echo "Unable to determine package manager" @@ -57,7 +59,7 @@ jobs: with: node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json + cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }} - name: Setup Pages id: pages uses: actions/configure-pages@v4 From 17fe5c7de8543d19677e1c1b8a5ea578d69188ce Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 30 Mar 2024 01:10:11 +0000 Subject: [PATCH 165/185] Updating GHES workflows --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/mdbook.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 03044be19e..25db103f04 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -62,7 +62,7 @@ jobs: cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }} - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} working-directory: ${{ env.BUILD_PATH }} diff --git a/pages/gatsby.yml b/pages/gatsby.yml index c82a2f7aa3..1bcc667f5b 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -58,7 +58,7 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 with: # Automatically inject pathPrefix in your Gatsby configuration file. # diff --git a/pages/hugo.yml b/pages/hugo.yml index 1061a74bd7..141ad91a5a 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -45,7 +45,7 @@ jobs: submodules: recursive - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 8d5586c325..2874cc0c98 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -29,7 +29,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 6ea654d37b..cf79f4e071 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -39,7 +39,7 @@ jobs: cargo install --version ${MDBOOK_VERSION} mdbook - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Build with mdBook run: mdbook build - name: Upload artifact diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 74e57fceb5..ccde58d30c 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -54,7 +54,7 @@ jobs: node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 with: # Automatically inject basePath in your Next.js configuration file and disable # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 5ceb0e8d81..25a6862718 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -52,7 +52,7 @@ jobs: node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 with: # Automatically inject router.base in your Nuxt configuration file and set # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). diff --git a/pages/static.yml b/pages/static.yml index 819974a2c2..5640380712 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -32,7 +32,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: From 8c7ee816e087b32d09075535ab240f8cb944a5e4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 30 Mar 2024 01:21:25 +0000 Subject: [PATCH 166/185] Updating GHES workflows --- pages/nextjs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/nextjs.yml b/pages/nextjs.yml index ccde58d30c..e2c9ab62a2 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -73,7 +73,7 @@ jobs: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Build and Static HTML export with Next.js + - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - name: Upload artifact uses: actions/upload-pages-artifact@v3 From 8d2a913ae055dc764cd4fd35600c76f346ffeb31 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 3 Apr 2024 15:22:51 +0000 Subject: [PATCH 167/185] Updating GHES workflows --- code-scanning/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index cb883a9bb7..d24240d0d4 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -25,8 +25,8 @@ jobs: # Runner size impacts CodeQL analysis time. To learn more, please see: # - https://gh.io/recommended-hardware-resources-for-running-codeql # - https://gh.io/supported-runners-and-hardware-resources - # - https://gh.io/using-larger-runners - # Consider using larger runners for possible analysis time improvements. + # - https://gh.io/using-larger-runners (GitHub.com only) + # Consider using larger runners or machines with greater resources for possible analysis time improvements. runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: From 0329dc03ceb57c5feb6367bfc9fce0664179e401 Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Fri, 5 Apr 2024 14:22:52 -0700 Subject: [PATCH 168/185] Revert Pages actions to last ones compatible with GHES --- pages/astro.yml | 4 ++-- pages/gatsby.yml | 4 ++-- pages/hugo.yml | 4 ++-- pages/jekyll-gh-pages.yml | 4 ++-- pages/mdbook.yml | 4 ++-- pages/nextjs.yml | 4 ++-- pages/nuxtjs.yml | 4 ++-- pages/static.yml | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 25db103f04..7be3d83201 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -73,7 +73,7 @@ jobs: --base "${{ steps.pages.outputs.base_path }}" working-directory: ${{ env.BUILD_PATH }} - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ${{ env.BUILD_PATH }}/dist @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 1bcc667f5b..dd99a233e9 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -80,7 +80,7 @@ jobs: PREFIX_PATHS: 'true' run: ${{ steps.detect-package-manager.outputs.manager }} run build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./public @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/hugo.yml b/pages/hugo.yml index 141ad91a5a..25945476fb 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -58,7 +58,7 @@ jobs: --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./public @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 2874cc0c98..119c4f51ee 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -36,7 +36,7 @@ jobs: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 # Deployment job deploy: @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index cf79f4e071..8894ce35cd 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -43,7 +43,7 @@ jobs: - name: Build with mdBook run: mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./book @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index e2c9ab62a2..bbcef12f67 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -76,7 +76,7 @@ jobs: - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./out @@ -90,4 +90,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 25a6862718..eed4944068 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -73,7 +73,7 @@ jobs: - name: Static HTML export with Nuxt run: ${{ steps.detect-package-manager.outputs.manager }} run generate - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./dist @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/static.yml b/pages/static.yml index 5640380712..10865da0c5 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -34,10 +34,10 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: # Upload entire repository path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 From b2e9b953bfd6cdcbfc95b7a29df4323dbe7d53a7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 11 Apr 2024 11:17:41 +0000 Subject: [PATCH 169/185] Updating GHES workflows --- code-scanning/codeql.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index d24240d0d4..6fdadb163d 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -33,6 +33,9 @@ jobs: # required for all workflows security-events: write + # required to fetch internal or private CodeQL packs + packages: read + # only required for workflows in private repositories actions: read contents: read From 60cf90b26ed337525404bde56404361a01277b7a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 18 Apr 2024 19:39:37 +0000 Subject: [PATCH 170/185] Updating GHES workflows --- pages/astro.yml | 4 ++-- pages/gatsby.yml | 4 ++-- pages/hugo.yml | 4 ++-- pages/jekyll-gh-pages.yml | 4 ++-- pages/mdbook.yml | 4 ++-- pages/nextjs.yml | 4 ++-- pages/nuxtjs.yml | 4 ++-- pages/static.yml | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 7be3d83201..25db103f04 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -73,7 +73,7 @@ jobs: --base "${{ steps.pages.outputs.base_path }}" working-directory: ${{ env.BUILD_PATH }} - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ${{ env.BUILD_PATH }}/dist @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index dd99a233e9..1bcc667f5b 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -80,7 +80,7 @@ jobs: PREFIX_PATHS: 'true' run: ${{ steps.detect-package-manager.outputs.manager }} run build - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./public @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/hugo.yml b/pages/hugo.yml index 25945476fb..141ad91a5a 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -58,7 +58,7 @@ jobs: --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./public @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 119c4f51ee..2874cc0c98 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -36,7 +36,7 @@ jobs: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 # Deployment job deploy: @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 8894ce35cd..cf79f4e071 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -43,7 +43,7 @@ jobs: - name: Build with mdBook run: mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./book @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index bbcef12f67..e2c9ab62a2 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -76,7 +76,7 @@ jobs: - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./out @@ -90,4 +90,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index eed4944068..25a6862718 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -73,7 +73,7 @@ jobs: - name: Static HTML export with Nuxt run: ${{ steps.detect-package-manager.outputs.manager }} run generate - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./dist @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 diff --git a/pages/static.yml b/pages/static.yml index 10865da0c5..5640380712 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -34,10 +34,10 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 From 724ffe54b78fd92c05db5aa580c2fb4899e29ed6 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 25 Apr 2024 16:52:34 +0000 Subject: [PATCH 171/185] Updating GHES workflows --- ci/ada.yml | 2 +- ci/android.yml | 2 +- ci/ant.yml | 2 +- ci/blank.yml | 2 +- ci/c-cpp.yml | 2 +- ci/clojure.yml | 2 +- ci/cmake-multi-platform.yml | 2 +- ci/cmake-single-platform.yml | 2 +- ci/crystal.yml | 2 +- ci/django.yml | 2 +- ci/docker-image.yml | 2 +- ci/erlang.yml | 2 +- ci/generator-generic-ossf-slsa3-publish.yml | 2 +- ci/go.yml | 2 +- ci/ios.yml | 2 +- ci/jekyll-docker.yml | 2 +- ci/makefile.yml | 2 +- ci/maven-publish.yml | 2 +- ci/node.js.yml | 2 +- ci/npm-grunt.yml | 2 +- ci/npm-gulp.yml | 2 +- ci/npm-publish-github-packages.yml | 4 ++-- ci/npm-publish.yml | 4 ++-- ci/objective-c-xcode.yml | 2 +- ci/php.yml | 2 +- ci/pylint.yml | 2 +- ci/python-app.yml | 2 +- ci/python-package-conda.yml | 2 +- ci/python-package.yml | 2 +- ci/rust.yml | 2 +- ci/swift.yml | 2 +- ci/webpack.yml | 2 +- 32 files changed, 34 insertions(+), 34 deletions(-) diff --git a/ci/ada.yml b/ci/ada.yml index 417ed2e006..ecb01cd8ad 100644 --- a/ci/ada.yml +++ b/ci/ada.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up GNAT toolchain run: > diff --git a/ci/android.yml b/ci/android.yml index 221fca5c90..80a33b4c0d 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: set up JDK 11 uses: actions/setup-java@v3 with: diff --git a/ci/ant.yml b/ci/ant.yml index e9dba0106e..517a37a633 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 uses: actions/setup-java@v3 with: diff --git a/ci/blank.yml b/ci/blank.yml index 607e2cfaeb..8decfee630 100644 --- a/ci/blank.yml +++ b/ci/blank.yml @@ -23,7 +23,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Runs a single command using the runners shell - name: Run a one-line script diff --git a/ci/c-cpp.yml b/ci/c-cpp.yml index 14d2eb9c34..087efee6bf 100644 --- a/ci/c-cpp.yml +++ b/ci/c-cpp.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: configure run: ./configure - name: make diff --git a/ci/clojure.yml b/ci/clojure.yml index a76631a5dd..06396a8985 100644 --- a/ci/clojure.yml +++ b/ci/clojure.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: lein deps - name: Run tests diff --git a/ci/cmake-multi-platform.yml b/ci/cmake-multi-platform.yml index 8762e9f5c3..6d493980bd 100644 --- a/ci/cmake-multi-platform.yml +++ b/ci/cmake-multi-platform.yml @@ -45,7 +45,7 @@ jobs: c_compiler: cl steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set reusable strings # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. diff --git a/ci/cmake-single-platform.yml b/ci/cmake-single-platform.yml index ccc318b5d6..1e89f2f1fa 100644 --- a/ci/cmake-single-platform.yml +++ b/ci/cmake-single-platform.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. diff --git a/ci/crystal.yml b/ci/crystal.yml index 18cc825acb..0b4f5704cf 100644 --- a/ci/crystal.yml +++ b/ci/crystal.yml @@ -15,7 +15,7 @@ jobs: image: crystallang/crystal steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: shards install - name: Run tests diff --git a/ci/django.yml b/ci/django.yml index 79550cc789..0503635290 100644 --- a/ci/django.yml +++ b/ci/django.yml @@ -16,7 +16,7 @@ jobs: python-version: [3.7, 3.8, 3.9] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: diff --git a/ci/docker-image.yml b/ci/docker-image.yml index cc9cd6ee37..be757cca1e 100644 --- a/ci/docker-image.yml +++ b/ci/docker-image.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build the Docker image run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/ci/erlang.yml b/ci/erlang.yml index 984b83adf6..d8dcb76cc0 100644 --- a/ci/erlang.yml +++ b/ci/erlang.yml @@ -19,7 +19,7 @@ jobs: image: erlang:22.0.7 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Compile run: rebar3 compile - name: Run tests diff --git a/ci/generator-generic-ossf-slsa3-publish.yml b/ci/generator-generic-ossf-slsa3-publish.yml index a36e782cbf..35c829b139 100644 --- a/ci/generator-generic-ossf-slsa3-publish.yml +++ b/ci/generator-generic-ossf-slsa3-publish.yml @@ -23,7 +23,7 @@ jobs: digests: ${{ steps.hash.outputs.digests }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # ======================================================== # diff --git a/ci/go.yml b/ci/go.yml index 9f74f8704d..2154740733 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 diff --git a/ci/ios.yml b/ci/ios.yml index 693a7d5ae0..e1dca4bdef 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n") diff --git a/ci/jekyll-docker.yml b/ci/jekyll-docker.yml index 6a98dea142..4ae36d7826 100644 --- a/ci/jekyll-docker.yml +++ b/ci/jekyll-docker.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build the site in the jekyll/builder container run: | docker run \ diff --git a/ci/makefile.yml b/ci/makefile.yml index 1b53855ad3..5b6d2e6316 100644 --- a/ci/makefile.yml +++ b/ci/makefile.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: configure run: ./configure diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index dab69fef79..954e6c8d9b 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -16,7 +16,7 @@ jobs: packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 uses: actions/setup-java@v3 with: diff --git a/ci/node.js.yml b/ci/node.js.yml index f230593b30..688a227883 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -20,7 +20,7 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: diff --git a/ci/npm-grunt.yml b/ci/npm-grunt.yml index 0bcbd1c9ff..0039895d28 100644 --- a/ci/npm-grunt.yml +++ b/ci/npm-grunt.yml @@ -15,7 +15,7 @@ jobs: node-version: [14.x, 16.x, 18.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/ci/npm-gulp.yml b/ci/npm-gulp.yml index 7d79002e88..19bed274bb 100644 --- a/ci/npm-gulp.yml +++ b/ci/npm-gulp.yml @@ -15,7 +15,7 @@ jobs: node-version: [14.x, 16.x, 18.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/ci/npm-publish-github-packages.yml b/ci/npm-publish-github-packages.yml index e790f4dd4f..189970904d 100644 --- a/ci/npm-publish-github-packages.yml +++ b/ci/npm-publish-github-packages.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 16 @@ -25,7 +25,7 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 16 diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 6cdebafb6b..0049296098 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 16 @@ -22,7 +22,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 16 diff --git a/ci/objective-c-xcode.yml b/ci/objective-c-xcode.yml index 13738787b6..8c73fcee1a 100644 --- a/ci/objective-c-xcode.yml +++ b/ci/objective-c-xcode.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n") diff --git a/ci/php.yml b/ci/php.yml index a3bdfd7db9..0cf8c96a2e 100644 --- a/ci/php.yml +++ b/ci/php.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Validate composer.json and composer.lock run: composer validate --strict diff --git a/ci/pylint.yml b/ci/pylint.yml index 383e65cd03..c73e032c0f 100644 --- a/ci/pylint.yml +++ b/ci/pylint.yml @@ -9,7 +9,7 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: diff --git a/ci/python-app.yml b/ci/python-app.yml index 994538258f..5963096c33 100644 --- a/ci/python-app.yml +++ b/ci/python-app.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.10 uses: actions/setup-python@v3 with: diff --git a/ci/python-package-conda.yml b/ci/python-package-conda.yml index 384f9b727c..f3586044ab 100644 --- a/ci/python-package-conda.yml +++ b/ci/python-package-conda.yml @@ -9,7 +9,7 @@ jobs: max-parallel: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.10 uses: actions/setup-python@v3 with: diff --git a/ci/python-package.yml b/ci/python-package.yml index 249ceef8bb..19247ca7b7 100644 --- a/ci/python-package.yml +++ b/ci/python-package.yml @@ -19,7 +19,7 @@ jobs: python-version: ["3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: diff --git a/ci/rust.yml b/ci/rust.yml index d51f1afdb7..cda1f64a62 100644 --- a/ci/rust.yml +++ b/ci/rust.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: cargo build --verbose - name: Run tests diff --git a/ci/swift.yml b/ci/swift.yml index 91276e31fa..f2da0d0c9e 100644 --- a/ci/swift.yml +++ b/ci/swift.yml @@ -15,7 +15,7 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: swift build -v - name: Run tests diff --git a/ci/webpack.yml b/ci/webpack.yml index 2b8b18a805..9e967c0d54 100644 --- a/ci/webpack.yml +++ b/ci/webpack.yml @@ -15,7 +15,7 @@ jobs: node-version: [14.x, 16.x, 18.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 From 5c5d982a32993ae6c708307a42cd90a98f6d5cc4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 29 Apr 2024 19:05:37 +0000 Subject: [PATCH 172/185] Updating GHES workflows --- icons/astro.svg | 20 -------------------- icons/gatsby.svg | 7 ------- icons/html.svg | 1 - icons/hugo.svg | 9 --------- icons/jekyll-tube.svg | 1 - icons/mdbook.svg | 17 ----------------- icons/nextjs.svg | 3 --- icons/nuxtjs.svg | 4 ---- 8 files changed, 62 deletions(-) delete mode 100644 icons/astro.svg delete mode 100644 icons/gatsby.svg delete mode 100644 icons/html.svg delete mode 100644 icons/hugo.svg delete mode 100644 icons/jekyll-tube.svg delete mode 100644 icons/mdbook.svg delete mode 100644 icons/nextjs.svg delete mode 100644 icons/nuxtjs.svg diff --git a/icons/astro.svg b/icons/astro.svg deleted file mode 100644 index ff9dd54b54..0000000000 --- a/icons/astro.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/icons/gatsby.svg b/icons/gatsby.svg deleted file mode 100644 index 5578b06cb2..0000000000 --- a/icons/gatsby.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - Gatsby - - - - diff --git a/icons/html.svg b/icons/html.svg deleted file mode 100644 index b7c6bb99c2..0000000000 --- a/icons/html.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/hugo.svg b/icons/hugo.svg deleted file mode 100644 index ea72a6f51a..0000000000 --- a/icons/hugo.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/icons/jekyll-tube.svg b/icons/jekyll-tube.svg deleted file mode 100644 index 89dd55dce0..0000000000 --- a/icons/jekyll-tube.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/icons/mdbook.svg b/icons/mdbook.svg deleted file mode 100644 index c61e0a6138..0000000000 --- a/icons/mdbook.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/icons/nextjs.svg b/icons/nextjs.svg deleted file mode 100644 index c45d6e63fb..0000000000 --- a/icons/nextjs.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/icons/nuxtjs.svg b/icons/nuxtjs.svg deleted file mode 100644 index bebded37c0..0000000000 --- a/icons/nuxtjs.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - From 06f9fb7fa3b7270aaa3b82c6eac487dfe071cd0d Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Fri, 5 Apr 2024 14:22:52 -0700 Subject: [PATCH 173/185] Revert Pages actions to last ones compatible with GHES --- pages/astro.yml | 4 ++-- pages/gatsby.yml | 4 ++-- pages/hugo.yml | 4 ++-- pages/jekyll-gh-pages.yml | 4 ++-- pages/mdbook.yml | 4 ++-- pages/nextjs.yml | 4 ++-- pages/nuxtjs.yml | 4 ++-- pages/static.yml | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 25db103f04..7be3d83201 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -73,7 +73,7 @@ jobs: --base "${{ steps.pages.outputs.base_path }}" working-directory: ${{ env.BUILD_PATH }} - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ${{ env.BUILD_PATH }}/dist @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 1bcc667f5b..dd99a233e9 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -80,7 +80,7 @@ jobs: PREFIX_PATHS: 'true' run: ${{ steps.detect-package-manager.outputs.manager }} run build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./public @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/hugo.yml b/pages/hugo.yml index 141ad91a5a..25945476fb 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -58,7 +58,7 @@ jobs: --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./public @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 2874cc0c98..119c4f51ee 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -36,7 +36,7 @@ jobs: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 # Deployment job deploy: @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index cf79f4e071..8894ce35cd 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -43,7 +43,7 @@ jobs: - name: Build with mdBook run: mdbook build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./book @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index e2c9ab62a2..bbcef12f67 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -76,7 +76,7 @@ jobs: - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./out @@ -90,4 +90,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 25a6862718..eed4944068 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -73,7 +73,7 @@ jobs: - name: Static HTML export with Nuxt run: ${{ steps.detect-package-manager.outputs.manager }} run generate - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: path: ./dist @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 diff --git a/pages/static.yml b/pages/static.yml index 5640380712..10865da0c5 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -34,10 +34,10 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: # Upload entire repository path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v3 From 9d78eaa2400e60e27ba788f6c58771c0e3d24da9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 29 Apr 2024 21:44:23 +0000 Subject: [PATCH 174/185] Updating GHES workflows --- icons/astro.svg | 20 ++++++++++++++++++++ icons/gatsby.svg | 7 +++++++ icons/html.svg | 1 + icons/hugo.svg | 9 +++++++++ icons/jekyll-tube.svg | 1 + icons/mdbook.svg | 17 +++++++++++++++++ icons/nextjs.svg | 3 +++ icons/nuxtjs.svg | 4 ++++ 8 files changed, 62 insertions(+) create mode 100644 icons/astro.svg create mode 100644 icons/gatsby.svg create mode 100644 icons/html.svg create mode 100644 icons/hugo.svg create mode 100644 icons/jekyll-tube.svg create mode 100644 icons/mdbook.svg create mode 100644 icons/nextjs.svg create mode 100644 icons/nuxtjs.svg diff --git a/icons/astro.svg b/icons/astro.svg new file mode 100644 index 0000000000..ff9dd54b54 --- /dev/null +++ b/icons/astro.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/icons/gatsby.svg b/icons/gatsby.svg new file mode 100644 index 0000000000..5578b06cb2 --- /dev/null +++ b/icons/gatsby.svg @@ -0,0 +1,7 @@ + + + Gatsby + + + + diff --git a/icons/html.svg b/icons/html.svg new file mode 100644 index 0000000000..b7c6bb99c2 --- /dev/null +++ b/icons/html.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/hugo.svg b/icons/hugo.svg new file mode 100644 index 0000000000..ea72a6f51a --- /dev/null +++ b/icons/hugo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/icons/jekyll-tube.svg b/icons/jekyll-tube.svg new file mode 100644 index 0000000000..89dd55dce0 --- /dev/null +++ b/icons/jekyll-tube.svg @@ -0,0 +1 @@ + diff --git a/icons/mdbook.svg b/icons/mdbook.svg new file mode 100644 index 0000000000..c61e0a6138 --- /dev/null +++ b/icons/mdbook.svg @@ -0,0 +1,17 @@ + + + + diff --git a/icons/nextjs.svg b/icons/nextjs.svg new file mode 100644 index 0000000000..c45d6e63fb --- /dev/null +++ b/icons/nextjs.svg @@ -0,0 +1,3 @@ + + + diff --git a/icons/nuxtjs.svg b/icons/nuxtjs.svg new file mode 100644 index 0000000000..bebded37c0 --- /dev/null +++ b/icons/nuxtjs.svg @@ -0,0 +1,4 @@ + + + + From 9dff4562566efdbaa4ddec48caa2f22e4f59764d Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Mon, 6 May 2024 21:31:11 -0700 Subject: [PATCH 175/185] Downgrade configure-pages to v4 since ghes-actions is lagging behind --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/mdbook.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 7be3d83201..b57db08926 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -62,7 +62,7 @@ jobs: cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }} - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} working-directory: ${{ env.BUILD_PATH }} diff --git a/pages/gatsby.yml b/pages/gatsby.yml index dd99a233e9..d6b0eef068 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -58,7 +58,7 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 with: # Automatically inject pathPrefix in your Gatsby configuration file. # diff --git a/pages/hugo.yml b/pages/hugo.yml index 25945476fb..3de5235a70 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -45,7 +45,7 @@ jobs: submodules: recursive - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 119c4f51ee..88328bdded 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -29,7 +29,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 8894ce35cd..0abd3f6e78 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -39,7 +39,7 @@ jobs: cargo install --version ${MDBOOK_VERSION} mdbook - name: Setup Pages id: pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 - name: Build with mdBook run: mdbook build - name: Upload artifact diff --git a/pages/nextjs.yml b/pages/nextjs.yml index bbcef12f67..00ce5afdbc 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -54,7 +54,7 @@ jobs: node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 with: # Automatically inject basePath in your Next.js configuration file and disable # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index eed4944068..312f98a690 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -52,7 +52,7 @@ jobs: node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 with: # Automatically inject router.base in your Nuxt configuration file and set # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). diff --git a/pages/static.yml b/pages/static.yml index 10865da0c5..43aa997552 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -32,7 +32,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v4 - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: From 97a1eac844581980616f594f673af729b9a5739d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 13 May 2024 09:29:42 +0000 Subject: [PATCH 176/185] Updating GHES workflows --- code-scanning/codeql.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 6fdadb163d..655fc59b4e 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -76,6 +76,7 @@ jobs: # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - if: matrix.build-mode == 'manual' + shell: bash run: | echo 'If you are using a "manual" build mode for one or more of the' \ 'languages you are analyzing, replace this with the commands to build' \ From c725e6558afebc30aa51bfb492ec956c97121002 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 30 Jul 2024 17:38:28 +0000 Subject: [PATCH 177/185] Updating GHES workflows --- ci/android.yml | 2 +- ci/ant.yml | 2 +- ci/maven-publish.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/android.yml b/ci/android.yml index 80a33b4c0d..fec1eb98b3 100644 --- a/ci/android.yml +++ b/ci/android.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' distribution: 'temurin' diff --git a/ci/ant.yml b/ci/ant.yml index 517a37a633..8cfe6417a7 100644 --- a/ci/ant.yml +++ b/ci/ant.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' distribution: 'temurin' diff --git a/ci/maven-publish.yml b/ci/maven-publish.yml index 954e6c8d9b..64b848b61d 100644 --- a/ci/maven-publish.yml +++ b/ci/maven-publish.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' distribution: 'temurin' From 26400ce4d574f3d4d46b0a09e18ad847c68788ad Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 30 Jul 2024 17:40:47 +0000 Subject: [PATCH 178/185] Updating GHES workflows --- ci/node.js.yml | 4 ++-- ci/npm-grunt.yml | 4 ++-- ci/npm-gulp.yml | 4 ++-- ci/npm-publish-github-packages.yml | 8 ++++---- ci/npm-publish.yml | 8 ++++---- ci/webpack.yml | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 688a227883..d5ccc1494a 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -16,13 +16,13 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' diff --git a/ci/npm-grunt.yml b/ci/npm-grunt.yml index 0039895d28..ccdabd8861 100644 --- a/ci/npm-grunt.yml +++ b/ci/npm-grunt.yml @@ -12,13 +12,13 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/ci/npm-gulp.yml b/ci/npm-gulp.yml index 19bed274bb..3a4ec122fc 100644 --- a/ci/npm-gulp.yml +++ b/ci/npm-gulp.yml @@ -12,13 +12,13 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/ci/npm-publish-github-packages.yml b/ci/npm-publish-github-packages.yml index 189970904d..99531c0178 100644 --- a/ci/npm-publish-github-packages.yml +++ b/ci/npm-publish-github-packages.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm ci - run: npm test @@ -26,9 +26,9 @@ jobs: packages: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: $registry-url(npm) - run: npm ci - run: npm publish diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 0049296098..2a4766d389 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm ci - run: npm test @@ -23,9 +23,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish diff --git a/ci/webpack.yml b/ci/webpack.yml index 9e967c0d54..1013845287 100644 --- a/ci/webpack.yml +++ b/ci/webpack.yml @@ -12,13 +12,13 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} From 452261e242b32f65989f11debfd57dd1281c1b6d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 20 Aug 2024 13:06:36 +0000 Subject: [PATCH 179/185] Updating GHES workflows --- code-scanning/codeql.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 655fc59b4e..3e48389ae3 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -28,7 +28,6 @@ jobs: # - https://gh.io/using-larger-runners (GitHub.com only) # Consider using larger runners or machines with greater resources for possible analysis time improvements. runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: # required for all workflows security-events: write From a4dbb6391f69a49d18ef9651094f622d1c1d38dc Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 3 Sep 2024 09:55:53 +0000 Subject: [PATCH 180/185] Updating GHES workflows --- code-scanning/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 3e48389ae3..7e46549fc5 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -9,7 +9,7 @@ # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # -name: "CodeQL" +name: "CodeQL Advanced" on: push: From 0a800a787cf9d1a213c1d20b93b25b51c8da110a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 3 Feb 2025 12:22:39 +0000 Subject: [PATCH 181/185] Updating GHES workflows --- code-scanning/codeql.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index 7e46549fc5..eeb0dceb5f 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -55,6 +55,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + # Add any setup steps before running the `github/codeql-action/init` action. + # This includes steps like installing compilers or runtimes (`actions/setup-node` + # or others). This is typically only required for manual builds. + # - name: Setup runtime (example) + # uses: actions/setup-example@v1 + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 From c246d80c753bdee35754b539973fcf52f91f28f4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 15 Oct 2025 14:42:40 +0000 Subject: [PATCH 182/185] Updating GHES workflows --- code-scanning/codeql.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code-scanning/codeql.yml b/code-scanning/codeql.yml index eeb0dceb5f..39d0d8ee91 100644 --- a/code-scanning/codeql.yml +++ b/code-scanning/codeql.yml @@ -63,7 +63,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -80,7 +80,8 @@ jobs: # to build your code. # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - if: matrix.build-mode == 'manual' + - name: Run manual build steps + if: matrix.build-mode == 'manual' shell: bash run: | echo 'If you are using a "manual" build mode for one or more of the' \ @@ -91,6 +92,6 @@ jobs: exit 1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}" From deb681107998c7b5d9fb91643615ca8fdd953143 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 4 Dec 2025 18:30:48 +0000 Subject: [PATCH 183/185] Updating GHES workflows --- ci/npm-grunt.yml | 28 ------------------------- ci/npm-gulp.yml | 28 ------------------------- ci/properties/npm-grunt.properties.json | 6 ------ ci/properties/npm-gulp.properties.json | 6 ------ icons/grunt.svg | 1 - icons/gulp.svg | 1 - 6 files changed, 70 deletions(-) delete mode 100644 ci/npm-grunt.yml delete mode 100644 ci/npm-gulp.yml delete mode 100644 ci/properties/npm-grunt.properties.json delete mode 100644 ci/properties/npm-gulp.properties.json delete mode 100644 icons/grunt.svg delete mode 100644 icons/gulp.svg diff --git a/ci/npm-grunt.yml b/ci/npm-grunt.yml deleted file mode 100644 index ccdabd8861..0000000000 --- a/ci/npm-grunt.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: NodeJS with Grunt - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - - steps: - - uses: actions/checkout@v4 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Build - run: | - npm install - grunt diff --git a/ci/npm-gulp.yml b/ci/npm-gulp.yml deleted file mode 100644 index 3a4ec122fc..0000000000 --- a/ci/npm-gulp.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: NodeJS with Gulp - -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - - steps: - - uses: actions/checkout@v4 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Build - run: | - npm install - gulp diff --git a/ci/properties/npm-grunt.properties.json b/ci/properties/npm-grunt.properties.json deleted file mode 100644 index 34a0a350dd..0000000000 --- a/ci/properties/npm-grunt.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Grunt", - "description": "Build a NodeJS project with npm and grunt.", - "iconName": "grunt", - "categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Grunt"] -} diff --git a/ci/properties/npm-gulp.properties.json b/ci/properties/npm-gulp.properties.json deleted file mode 100644 index 3b4201aaf5..0000000000 --- a/ci/properties/npm-gulp.properties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Gulp", - "description": "Build a NodeJS project with npm and gulp.", - "iconName": "gulp", - "categories": ["Continuous integration", "JavaScript", "TypeScript", "npm", "Gulp"] -} diff --git a/icons/grunt.svg b/icons/grunt.svg deleted file mode 100644 index ce8e4a6cf1..0000000000 --- a/icons/grunt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/icons/gulp.svg b/icons/gulp.svg deleted file mode 100644 index a99af85e85..0000000000 --- a/icons/gulp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From f8ea026167d061938db21678720c0a5e5a02f13b Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 3 Apr 2026 20:23:22 +0000 Subject: [PATCH 184/185] update deploy pages --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/mdbook.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index b57db08926..69b717e3a3 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index d6b0eef068..69adba8550 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 diff --git a/pages/hugo.yml b/pages/hugo.yml index 3de5235a70..08354f358d 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 88328bdded..78d0b2a31e 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index 0abd3f6e78..a21abc605d 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 00ce5afdbc..3770f01484 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -90,4 +90,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index 312f98a690..cc452ec296 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 diff --git a/pages/static.yml b/pages/static.yml index 43aa997552..ca217c77d3 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -40,4 +40,4 @@ jobs: path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@3.02-node.24 From 5b801c2c8cea194bc4681c75d9a4d4ca298d9754 Mon Sep 17 00:00:00 2001 From: EYECASH SOFTWARES CORP Date: Sat, 4 Apr 2026 04:18:20 +0300 Subject: [PATCH 185/185] Revert "update deploy pages" --- pages/astro.yml | 2 +- pages/gatsby.yml | 2 +- pages/hugo.yml | 2 +- pages/jekyll-gh-pages.yml | 2 +- pages/mdbook.yml | 2 +- pages/nextjs.yml | 2 +- pages/nuxtjs.yml | 2 +- pages/static.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/astro.yml b/pages/astro.yml index 69b717e3a3..b57db08926 100644 --- a/pages/astro.yml +++ b/pages/astro.yml @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3 diff --git a/pages/gatsby.yml b/pages/gatsby.yml index 69adba8550..d6b0eef068 100644 --- a/pages/gatsby.yml +++ b/pages/gatsby.yml @@ -94,4 +94,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3 diff --git a/pages/hugo.yml b/pages/hugo.yml index 08354f358d..3de5235a70 100644 --- a/pages/hugo.yml +++ b/pages/hugo.yml @@ -72,4 +72,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3 diff --git a/pages/jekyll-gh-pages.yml b/pages/jekyll-gh-pages.yml index 78d0b2a31e..88328bdded 100644 --- a/pages/jekyll-gh-pages.yml +++ b/pages/jekyll-gh-pages.yml @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3 diff --git a/pages/mdbook.yml b/pages/mdbook.yml index a21abc605d..0abd3f6e78 100644 --- a/pages/mdbook.yml +++ b/pages/mdbook.yml @@ -57,4 +57,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3 diff --git a/pages/nextjs.yml b/pages/nextjs.yml index 3770f01484..00ce5afdbc 100644 --- a/pages/nextjs.yml +++ b/pages/nextjs.yml @@ -90,4 +90,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3 diff --git a/pages/nuxtjs.yml b/pages/nuxtjs.yml index cc452ec296..312f98a690 100644 --- a/pages/nuxtjs.yml +++ b/pages/nuxtjs.yml @@ -87,4 +87,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3 diff --git a/pages/static.yml b/pages/static.yml index ca217c77d3..43aa997552 100644 --- a/pages/static.yml +++ b/pages/static.yml @@ -40,4 +40,4 @@ jobs: path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@3.02-node.24 + uses: actions/deploy-pages@v3