github-script VS setup-terraform

Compare github-script vs setup-terraform and see what are their differences.

github-script

Write workflows scripting the GitHub API in JavaScript (by actions)

setup-terraform

Sets up Terraform CLI in your GitHub Actions workflow. (by hashicorp)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
github-script setup-terraform
11 12
3,942 1,272
1.6% 2.4%
6.4 8.0
about 1 month ago 5 days ago
TypeScript JavaScript
MIT License Mozilla Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

github-script

Posts with mentions or reviews of github-script. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-22.
  • Github Actions - Output
    1 project | dev.to | 22 Aug 2023
    It's also possible to use output through the github-script action.
  • How to Terraform with Comments (And You Can DIY!*)
    3 projects | dev.to | 22 May 2023
    I wrote a custom script to parse PR comments as input commands to interface with Terraform CLI, returning the output as bot comments. Each step of the workflow relies on GitHub Actions, including actions/github-script to interact with GitHub's API (while brushing up on my JavaScript!).
  • actions-rs Github Actions need more maintainers!!! OR to be replaced
    7 projects | /r/rust | 21 Nov 2022
    You can generate what to annotate with a few lines of shell and then use gihub-script
  • GitHub Actions by Example
    13 projects | news.ycombinator.com | 24 Jan 2022
    Nice idea, worth mentioning other features:

    * Reusable workflows (note: matrix strategy doesn't work here): https://docs.github.com/en/actions/using-workflows/reusing-w...

    * Composite actions: https://docs.github.com/en/actions/creating-actions/creating...

    * Script as action: https://github.com/actions/github-script

    * Using GitHub Packages and artifacts: https://docs.github.com/en/actions/publishing-packages/about...

    * Using docker-compose-like services that run alongside of the container: https://docs.github.com/en/actions/using-containerized-servi...

    And many, many more :)

  • Automating Data Analytics Environments
    7 projects | dev.to | 7 Dec 2021
    actions/github-script@v5
  • Automatically cross-publish posts from my blog to dev.to
    2 projects | dev.to | 7 Dec 2021
    This workflow makes use of the awesome github-script that makes working with API's a breeze!
  • Paste of screenshots on GitHub isn't working with Chrome
    1 project | /r/xfce | 8 Sep 2021
    GitHub support hasn't been helpful so far. If you use Chrome on Linux, type xfce4-screenshooter or flameshot and grab a screenshot. Then navigate to any issue or PR, for example, https://github.com/actions/github-script/issues/187 and in the comment box at the bottom, type Ctrl-V. Either you'll see your image get uploaded or you won't. You don't need to save nor submit the comment.
  • Build GitHub Actions with a Docker Container
    2 projects | dev.to | 16 Feb 2021
    Note at the end of the bash, and we are leveraging a curl command to talk directly to the GitHub API. This curl command is meant for simplicity. All of this could have been done using the octokit.rest.js library or better github-script.
  • Automate your PR reviews with GitHub Action scripting in JavaScript
    3 projects | dev.to | 14 Feb 2021
    In this post, I am going to focus on the API and actions/github-script. This action makes it easy to quickly write a script in your workflow that uses the GitHub API and includes the workflow run context.
  • My First Github Workflow
    3 projects | dev.to | 6 Sep 2020
    My new github action follows a simple workflow: Whenever a user opens a pull request to the repository with the configured workflow, a comment is made on the PR with a greeting to the user and another comment with the statistics about the repository and PR are posted. Used the github-scripts (https://github.com/actions/github-script) action to get the API and context to write my own script in the workflow. It was a very fun exercise for me. Thankyou Dev Team for this cool contest!

setup-terraform

Posts with mentions or reviews of setup-terraform. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-15.
  • Accelerating the Implementation of DevOps Culture in Your Organization with Amazon CodeCatalyst
    1 project | dev.to | 21 Jul 2023
    # Adaptation of the https://developer.hashicorp.com/terraform/tutorials/automation/github-actions workflow Name: TerraformMainBranch SchemaVersion: "1.0" # Here we are including the trigger for this workflow: Push / Pull Request. If not included then this workflow will be executed only manually Triggers: - Type: Push Branches: - main # Here we are defining the actions that will be executed for this workflow Actions: Terraform-Main-Branch-Apply: Identifier: aws/build@v1 Inputs: Sources: - WorkflowSource Environment: Connections: - Role: Main-Branch-Infrastructure Name: "XXXXXXXXXXXX" Name: TerraformBootstrap Configuration: Steps: - Run: export TF_VERSION=1.5.2 && wget -O terraform.zip "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip" - Run: unzip terraform.zip && rm terraform.zip && mv terraform /usr/bin/terraform && chmod +x /usr/bin/terraform - Run: terraform init -no-color - Run: terraform validate -no-color - Run: terraform plan -no-color -input=false - Run: terraform apply -auto-approve -no-color -input=false Compute: Type: EC2
  • Terraform modules and ADO
    1 project | /r/azuredevops | 3 May 2023
    Now, there is a GitHub issue for setup-terraform that essentially demonstrates a problem that might occur if you try to reference your Git repo from Azure Pipelines (using HTTP) without appropriate permissions or workarounds. In this issue, there are two solutions:
  • Terraform apply is skipped for some reason when this GitHub action is run
    1 project | /r/Terraform | 25 Oct 2022
  • Where can I find source code that I can practice devops with?
    3 projects | /r/devops | 15 Oct 2022
    Have you tried the official tutorial here: https://learn.hashicorp.com/tutorials/terraform/github-actions ?
  • Looking for ideas for a large (9 month) project
    1 project | /r/netsecstudents | 13 Jul 2022
    Think of a simple web application you could build and deploy into a cloud environment like aws or GCP. Build your cloud infrastructure with Terraform for this application. Deploy that infrastructure and the application itself using GitOps. For example this: https://learn.hashicorp.com/tutorials/terraform/github-actions
  • Pipeline IaC com Terraform e GitHub Actions
    1 project | dev.to | 22 Jun 2022
  • Terraform integrated in the deploy pipeline?
    2 projects | /r/Terraform | 11 May 2022
    Here's an example using Github Actions: https://learn.hashicorp.com/tutorials/terraform/github-actions. You can set all kinds of conditions in the pipeline config to only trigger on certain dirs or files, like (Github Action example:
  • My First Experience Learning Terraform and Amazon ECS + AWS Fargate
    2 projects | dev.to | 9 Apr 2022
    You may need to use the Terraform Cloud. When you use the Terraform Cloud, please use this guide. However, it's not required for now.
  • Im at a loss for how to setup a CI/CD pipeline. REALLY need some help
    4 projects | /r/homelab | 2 Apr 2022
    Since it sounds like you're using GitHub, using GitHub Actions for any CI pipelines would be easiest. You could run terraform plan in your PRs, there's a great writeup on how to do it here. Or any unit tests, docker builds, etc. Lots of great ideas at Awesome Actions.
  • Cloud Resume Challenge - Trials & Tribulations
    1 project | dev.to | 27 Mar 2022
    #11-15 The Finish Line So for the last portion of the challenge, I had to implement a test against my python code to make sure that it works as it should every time I update it. I then realized I wish I had started here first since I'd need to use IaC to deploy and configure all my resources. Reading I found that I could use SAM but instead I used Terraform/Terraform Cloud since I remember that's what many people use. I tore down almost everything that I did in the AWS console and redid everything using Terraform. I had to setup the API tokens, make a variable set using my AWS credentials and followed the tutorial on how to setup github actions and then I applied it to this challenge. I also used this resource to make a simple test. After that it was just setting up repositories for both my back end and front end.

What are some alternatives?

When comparing github-script and setup-terraform you can also consider the following projects:

dependabot-core - 🤖 Dependabot's core logic for creating update PR's.

setup-tflint - A GitHub action that installs Terraform linter TFLint

devhub - TweetDeck for GitHub - Filter Issues, Activities & Notifications - Web, Mobile & Desktop with 99% code sharing between them

DataAnalyticsEnvironments - Automated real time streaming ingestion using Kafka and Databricks

checkout - Action for checking out a repo

Workflows - Reusable workflows

take-action - This is an action to assign yourself to an issue for a repo you are not a contributor to.

my-aws - My AWS IAC

gh-action-terminal

terraform-up-and-running-code - Code samples for the book "Terraform: Up & Running" by Yevgeniy Brikman

toolkit - The GitHub ToolKit for developing GitHub Actions.

atlantis - Terraform Pull Request Automation