Benign go Download

github.com/HenriquePiccolo/terraform-provider-grafana-v2 v1.0.2

Backtick shell command-substitution syntaxShell command-substitution syntax
SHA-256584047ea7748ba476e12f474415c1628e6126a4e23fcc1e60bf0ac4c7117af6a

Evidence

Docker CLI run or create command GNUmakefile · lines 1–48
1TEST?=$$(go list ./... |grep -v 'vendor')
2GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3GRAFANA_VERSION ?= "latest"
4
⋯13 lines
18test-serv: fmtcheck
19 @docker pull "grafana/grafana:$(GRAFANA_VERSION)"
20 docker run -p 127.0.0.1:3000:3000 "grafana/grafana:$(GRAFANA_VERSION)"
21
22vet:
23 @echo "go vet ."
24 @go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
25 echo ""; \
26 echo "Vet found suspicious constructs. Please check the reported constructs"; \
27 echo "and fix them if necessary before submitting the code for review."; \
28 exit 1; \
29 fi
⋯14 lines
44 @if [ "$(TEST)" = "./..." ]; then \
45 echo "ERROR: Set TEST to a specific package. For example,"; \
46 echo " make test-compile TEST=./aws"; \
47 exit 1; \
48 fi
Terraform plugin serve call main.go · lines 1–11
1package main
2
3import (
4 "github.com/hashicorp/terraform/plugin"
5 "github.com/terraform-providers/terraform-provider-grafana/grafana"
6)
7
8func main() {
9 plugin.Serve(&plugin.ServeOpts{
10 ProviderFunc: grafana.Provider})
11}
References find over a relative directory gofmtcheck.sh · lines 1–13
1#!/usr/bin/env bash
2
3# Check gofmt
4echo "==> Checking that code complies with gofmt requirements..."
5gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`)
6if [[ -n ${gofmt_files} ]]; then
7 echo 'gofmt needs running on the following files:'
8 echo "${gofmt_files}"
9 echo "You can use the command: \`make fmt\` to reformat code."
10 exit 1
11fi
12
13exit 0
chmod shell command gogetcookie.sh · lines 1–10
1#!/bin/bash
2
3touch ~/.gitcookies
4chmod 0600 ~/.gitcookies
5
6git config --global http.cookiefile ~/.gitcookies
⋯4 lines
Markdown-style heading precedes a code fence ISSUE_TEMPLATE.md · lines 6–23
6:87… erraform, please upgrade because your issue may have already been fixed.
7
8### Affected Resource(s)
9Please list the resources as a list, for example:
10- opc_instance
11- opc_storage_volume
12
13If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
14
15### Terraform Configuration Files
16```hcl
17# Copy-paste your Terraform configurations here - for large Terraform configs,
18# please use a service like Dropbox and share a link to the ZIP file. For
19# security, you can also encrypt the files using our GPG public key.
20```
21
22### Debug Output
23Please provider a link to a GitHub Gist contain …

Showing the top 5 files — 1 more file (3 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.