Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit b47c944

Browse files
authored
Merge pull request #3 from secman-team/main
x
2 parents 5eb4c75 + 61fc4c8 commit b47c944

File tree

4 files changed

+54
-62
lines changed

4 files changed

+54
-62
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
12-
name: "CodeQL"
1+
name: CodeQL
132

143
on:
154
push:
165
branches: [ main ]
176
pull_request:
18-
# The branches below must be a subset of the branches above
197
branches: [ main ]
208
schedule:
219
- cron: "45 10 * * 3"
@@ -29,26 +17,16 @@ jobs:
2917
fail-fast: false
3018
matrix:
3119
language: [ "go" ]
32-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33-
# Learn more:
34-
# 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
3520

3621
steps:
3722
- name: Checkout repository
3823
uses: actions/checkout@v2
3924

40-
# Initializes the CodeQL tools for scanning.
4125
- name: Initialize CodeQL
4226
uses: github/codeql-action/init@v1
4327
with:
4428
languages: ${{ matrix.language }}
45-
# If you wish to specify custom queries, you can do so here or in a config file.
46-
# By default, queries listed here will override any specified in a config file.
47-
# Prefix the list here with "+" to use these queries and those in the config file.
48-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4929

50-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51-
# If this step fails, then you should remove it and run the build manually (see below)
5230
- name: Autobuild
5331
uses: github/codeql-action/autobuild@v1
5432

@@ -59,9 +37,5 @@ jobs:
5937
# and modify them (or add more) to build your code if your project
6038
# uses a compiled language
6139

62-
#- run: |
63-
# make bootstrap
64-
# make release
65-
6640
- name: Perform CodeQL Analysis
6741
uses: github/codeql-action/analyze@v1

.github/workflows/docker.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Secman Docker CI
2+
3+
on:
4+
push:
5+
# Publish `main` as Docker `latest` image.
6+
branches:
7+
- main
8+
9+
pull_request:
10+
11+
env:
12+
IMAGE: ghcr.io/secman-team/secman
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Login to Github Packages
22+
run: |
23+
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
24+
25+
- name: Run Build
26+
run: |
27+
docker pull $IMAGE:latest
28+
git clone https://github.com/secman-team/secman-docker
29+
docker build -t $IMAGE --cache-from $IMAGE:latest --file ./secman-docker/Dockerfile .
30+
docker push $IMAGE
31+
32+
run:
33+
needs: [ build ]
34+
35+
runs-on: ubuntu-20.04
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
40+
- name: Run the image
41+
run: docker run $IMAGE

.github/workflows/secman.yml

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ on:
88
branches: [ main ]
99

1010
env:
11-
CLONE_DOT_SECMAN: git clone https://github.com/secman-team/.secman.ex ~/.secman
1211
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
13-
CONFIG_NAME: git config user.name secman_yo
14-
CONFIG_EMAIL: git config user.email yo@secman.vercel.app
12+
CONFIG_NAME: git config --global user.name secman_yo
13+
CLONE_DOT_SECMAN: git clone https://github.com/secman-team/.secman.ex
1514

1615
jobs:
1716
ubuntu:
@@ -20,42 +19,19 @@ jobs:
2019
- uses: actions/checkout@v2
2120

2221
- name: Config
23-
run: |
24-
$CONFIG_NAME
25-
$CONFIG_EMAIL
22+
run: $CONFIG_NAME
2623

2724
- name: Install secman (Linux)
2825
run: curl -fsSL https://secman-team.github.io/install.sh | bash
2926

3027
- name: Clone .secman (ex folder)
31-
run: $CLONE_DOT_SECMAN
28+
run: $CLONE_DOT_SECMAN /home/runner/.secman
3229

3330
- name: Run secman
3431
run: secman
3532

36-
- name: Run secman version
37-
run: secman ver
38-
39-
macos:
40-
runs-on: macos-latest
41-
steps:
42-
- uses: actions/checkout@v2
43-
44-
- name: Config
45-
run: |
46-
$CONFIG_NAME
47-
$CONFIG_EMAIL
48-
49-
- name: Install secman (MacOS)
50-
# shell: bash
51-
shell: bash
52-
run: curl -fsSL https://secman-team.github.io/install.sh | bash
53-
54-
- name: Clone .secman (ex folder)
55-
run: $CLONE_DOT_SECMAN
56-
57-
- name: Run secman
58-
run: secman
33+
- name: Run secman Help
34+
run: secman -h
5935

6036
- name: Run secman version
6137
run: secman ver
@@ -67,9 +43,7 @@ jobs:
6743

6844
- name: Config
6945
shell: powershell
70-
run: |
71-
$CONFIG_NAME
72-
$CONFIG_EMAIL
46+
run: $CONFIG_NAME
7347

7448
- name: Install secman (Windows)
7549
run: |
@@ -78,10 +52,13 @@ jobs:
7852
7953
- name: Clone .secman (ex folder)
8054
shell: powershell
81-
run: $CLONE_DOT_SECMAN
55+
run: git clone https://github.com/secman-team/.secman.ex C:\Users\runneradmin\.secman
8256

8357
- name: Run secman
8458
run: secman
8559

60+
- name: Run secman Help
61+
run: secman -h
62+
8663
- name: Run secman version
8764
run: secman ver

api/verx

Submodule verx updated from 1b0a6c7 to 482842c

0 commit comments

Comments
 (0)