Skip to content

Commit df54275

Browse files
authored
Merge pull request #62 from essentialkaos/develop
Migration from Travis CI to GitHub Actions
2 parents 9bd847b + c40419b commit df54275

5 files changed

Lines changed: 139 additions & 61 deletions

File tree

.github/workflows/ci.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: '0 13 */15 * *'
10+
11+
jobs:
12+
Go:
13+
name: Go
14+
runs-on: ubuntu-latest
15+
16+
env:
17+
SRC_DIR: src/github.com/${{ github.repository }}
18+
19+
strategy:
20+
matrix:
21+
go: [ '1.14.x', '1.15.x' ]
22+
23+
steps:
24+
- name: Set up Go
25+
uses: actions/setup-go@v2
26+
with:
27+
go-version: ${{ matrix.go }}
28+
id: go
29+
30+
- name: Setup PATH
31+
run: |
32+
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
33+
echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV"
34+
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
35+
36+
- name: Checkout
37+
uses: actions/checkout@v2
38+
with:
39+
path: ${{env.SRC_DIR}}
40+
41+
- name: Download dependencies
42+
working-directory: ${{env.SRC_DIR}}
43+
run: make deps
44+
45+
- name: Build binary
46+
working-directory: ${{env.SRC_DIR}}
47+
run: make all
48+
49+
Perfecto:
50+
name: Perfecto
51+
runs-on: ubuntu-latest
52+
53+
needs: Go
54+
55+
steps:
56+
- name: Code checkout
57+
uses: actions/checkout@v2
58+
59+
- name: Run Perfecto docker image
60+
uses: docker://essentialkaos/perfecto:slim
61+
with:
62+
args: --version
63+
64+
- name: Install perfecto-docker
65+
run: |
66+
wget https://kaos.sh/perfecto/perfecto-docker
67+
chmod +x perfecto-docker
68+
69+
- name: Run Perfecto check
70+
env:
71+
IMAGE: essentialkaos/perfecto:slim
72+
run: ./perfecto-docker common/sslcli.spec
73+
74+
Hadolint:
75+
name: Hadolint
76+
runs-on: ubuntu-latest
77+
78+
needs: Go
79+
80+
env:
81+
HADOLINT_VERSION: 1.18.2
82+
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@v2
86+
87+
- name: Install Hadolint
88+
run: |
89+
wget -O hadolint https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Linux-x86_64
90+
chmod +x hadolint
91+
92+
- name: Print Hadolint version info
93+
run: ./hadolint --version
94+
95+
- name: Check Docker files
96+
run: ./hadolint Dockerfile

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p align="center">
44
<a href="https://goreportcard.com/report/github.com/essentialkaos/sslcli"><img src="https://goreportcard.com/badge/github.com/essentialkaos/sslcli"></a>
55
<a href="https://codebeat.co/projects/github-com-essentialkaos-sslcli-master"><img src="https://codebeat.co/badges/edc52bb1-c807-470b-8466-b86cc0cfcdbe"></a>
6-
<a href="https://travis-ci.com/essentialkaos/sslcli"><img src="https://travis-ci.com/essentialkaos/sslcli.svg"></a>
6+
<a href="https://github.com/essentialkaos/sslcli/actions"><img src="https://github.com/essentialkaos/sslcli/workflows/CI/badge.svg" alt="GitHub Actions Status" /></a>
77
<a href="https://github.com/essentialkaos/sslcli/actions?query=workflow%3ACodeQL"><img src="https://github.com/essentialkaos/sslcli/workflows/CodeQL/badge.svg" /></a>
88
<a href="#license"><img src="https://gh.kaos.st/apache2.svg"></a>
99
</p>
@@ -24,13 +24,7 @@
2424

2525
#### From source
2626

27-
Before the initial install allows git to use redirects for [pkg.re](https://github.com/essentialkaos/pkgre) service (_reason why you should do this described [here](https://github.com/essentialkaos/pkgre#git-support)_):
28-
29-
```
30-
git config --global http.https://pkg.re.followRedirects true
31-
```
32-
33-
To build the SSLScan Client from scratch, make sure you have a working Go 1.12+ workspace ([instructions](https://golang.org/doc/install)), then:
27+
To build the SSLScan Client from scratch, make sure you have a working Go 1.14+ workspace ([instructions](https://golang.org/doc/install)), then:
3428

3529
```
3630
go get github.com/essentialkaos/sslcli
@@ -42,18 +36,11 @@ If you want update SSLScan Client to latest stable release, do:
4236
go get -u github.com/essentialkaos/sslcli
4337
```
4438

45-
#### From ESSENTIAL KAOS Public repo for RHEL6/CentOS6
46-
47-
```bash
48-
[sudo] yum install -y https://yum.kaos.st/kaos-repo-latest.el6.noarch.rpm
49-
[sudo] yum install sslcli
50-
```
51-
52-
#### From ESSENTIAL KAOS Public repo for RHEL7/CentOS7
39+
#### From [ESSENTIAL KAOS Public Repository](https://yum.kaos.st)
5340

5441
```bash
55-
[sudo] yum install -y https://yum.kaos.st/kaos-repo-latest.el7.noarch.rpm
56-
[sudo] yum install sslcli
42+
sudo yum install -y https://yum.kaos.st/get/$(uname -r).rpm
43+
sudo yum install yo
5744
```
5845

5946
#### Prebuilt binaries
@@ -125,8 +112,8 @@ Examples
125112

126113
| Branch | Status |
127114
|--------|--------|
128-
| `master` | [![Build Status](https://travis-ci.com/essentialkaos/sslcli.svg?branch=master)](https://travis-ci.com/essentialkaos/sslcli) |
129-
| `develop` | [![Build Status](https://travis-ci.com/essentialkaos/sslcli.svg?branch=develop)](https://travis-ci.com/essentialkaos/sslcli) |
115+
| `master` | [![CI](https://github.com/essentialkaos/sslcli/workflows/CI/badge.svg?branch=master)](https://github.com/essentialkaos/sslcli/actions) |
116+
| `develop` | [![CI](https://github.com/essentialkaos/sslcli/workflows/CI/badge.svg?branch=develop)](https://github.com/essentialkaos/sslcli/actions) |
130117

131118
### Contributing
132119

SECURITY.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Security Policies and Procedures
2+
3+
This document outlines security procedures and general policies for all
4+
ESSENTIAL KAOS projects.
5+
6+
* [Reporting a Bug](#reporting-a-bug)
7+
* [Disclosure Policy](#disclosure-policy)
8+
9+
## Reporting a Bug
10+
11+
The ESSENTIAL KAOS team and community take all security bugs in our projects
12+
very seriously. Thank you for improving the security of our project. We
13+
appreciate your efforts and responsible disclosure and will make every effort
14+
to acknowledge your contributions.
15+
16+
Report security bugs by emailing our security team at security@essentialkaos.com.
17+
18+
The security team will acknowledge your email within 48 hours and will send a
19+
more detailed response within 48 hours, indicating the next steps in handling
20+
your report. After the initial reply to your report, the security team will
21+
endeavor to keep you informed of the progress towards a fix and full
22+
announcement, and may ask for additional information or guidance.
23+
24+
Report security bugs in third-party dependencies to the person or team
25+
maintaining the dependencies.
26+
27+
## Disclosure Policy
28+
29+
When the security team receives a security bug report, they will assign it to a
30+
primary handler. This person will coordinate the fix and release process,
31+
involving the following steps:
32+
33+
* Confirm the problem and determine the affected versions;
34+
* Audit code to find any similar potential problems;
35+
* Prepare fixes for all releases still under maintenance. These fixes will be
36+
released as fast as possible.

0 commit comments

Comments
 (0)