Fix code scanning alert no. 4: Incomplete regular expression for host… #44
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
name: Build | |
permissions: | |
id-token: write # required for AWS assume role | |
# This is because the permission block is replacive instead of additive so setting | |
# id-token removes any other permissions the job has and goreleaser need to write contents | |
contents: write | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
terraform: ["1.9.7"] | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
cache: false | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# We need the whole history so that goreleaser can figure out the changes | |
fetch-depth: 0 | |
- name: Install Terraform | |
run: | | |
wget https://releases.hashicorp.com/terraform/${{ matrix.terraform }}/terraform_${{ matrix.terraform }}_linux_amd64.zip -O /tmp/terraform.zip | |
sudo unzip -o -d /usr/local/bin/ /tmp/terraform.zip | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: arn:aws:iam::043612128888:role/nrd-oss-terragrunt-github-actions-ci | |
- name: Run full tests on releases | |
env: | |
AWS_REGION: us-east-1 | |
run: | | |
make full-test | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 | |
with: | |
distribution: goreleaser | |
version: '~> v2' | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |