Skip to content

Commit c460444

Browse files
authored
Merge pull request #7 from MGSousa/chore/security_check
Added Security Checks Workflow, some adjustments
2 parents 8af490b + d27dd8f commit c460444

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release prom-exporter
1+
name: Release
22

33
on:
44
push:

.github/workflows/security-tests.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Security Check
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
security:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
12+
- name: Run Gosec Security Scanner
13+
uses: securego/[email protected]
14+
with:
15+
args: ./...

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test prom-exporter
1+
name: Test Build
22

33
on:
44
pull_request:

Makefile

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@ ACT_URL = https://raw.githubusercontent.com/nektos/act/master/install.sh
33

44
ACT := $(shell command -v act)
55

6-
test_ci:
6+
.PHONY: test act test_sec test_ci docker_build goreleaser_build
7+
8+
test: test_sec test_ci
9+
10+
act:
711
@[ ! -x "$(ACT)" ] && (curl --proto '=https' --tlsv1.2 -sSf $(ACT_URL) | sudo bash && sudo install ./bin/act /usr/local/bin/) || true
12+
13+
test_ci: act
814
@act push --rm -j "test"
915

16+
test_sec: act
17+
@act push --rm -j "security"
18+
1019
docker_build:
1120
@docker build --no-cache -t $(BINARY) .
1221

0 commit comments

Comments
 (0)