Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions: att security to show risk-accepted and update permissions #363

Merged
merged 1 commit into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ on:
push:
branches:
- main

permissions: read-all
jobs:
Alpha:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
env:
COSIGN_KEY_LOCATION: /tmp/cosign.key
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/analytic-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Analytic
on: ["push"]

permissions: read-all
jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Analytic" -G true
horusec start -p . -e -n="Horusec/Platform-Analytic" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"
4 changes: 2 additions & 2 deletions .github/workflows/api-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Api
on: ["push"]

permissions: read-all
jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Api" -G true
horusec start -p . -e -n="Horusec/Platform-Api" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"
4 changes: 2 additions & 2 deletions .github/workflows/auth-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Auth
on: ["push"]

permissions: read-all
jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Auth" -G true
horusec start -p . -e -n="Horusec/Platform-Auth" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"
4 changes: 2 additions & 2 deletions .github/workflows/core-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Core
on: ["push"]

permissions: read-all
jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Core" -G true
horusec start -p . -e -n="Horusec/Platform-Core" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"
1 change: 1 addition & 0 deletions .github/workflows/license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

name: License
on: [ "push" ]
permissions: read-all
jobs:
license:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/manager-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

name: Manager
on: ["push"]

jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -52,4 +51,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -n="Horusec/Platform-Manager" -G true
horusec start -p . -n="Horusec/Platform-Manager" -G -e --show-vulnerabilities-types="Vulnerability, Risk Accepted"
4 changes: 2 additions & 2 deletions .github/workflows/messages-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Messages
on: ["push"]

permissions: read-all
jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Messages" -G true
horusec start -p . -e -n="Horusec/Platform-Messages" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"
4 changes: 2 additions & 2 deletions .github/workflows/migrations-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Migrations
on: ["push"]

permissions: read-all
jobs:
build-and-security:
runs-on: ubuntu-latest
Expand All @@ -31,4 +31,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Migrations" -G true
horusec start -p . -e -n="Horusec/Platform-Migrations" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"
7 changes: 4 additions & 3 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ on:
description: 'Release type: M (Major); m (Minor); p (Path)'
required: true

permissions:
contents: write

permissions: read-all
jobs:
release:
permissions:
contents: write
packages: write
env:
COSIGN_KEY_LOCATION: "/tmp/cosign.key"
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vulnerability-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Vulnerability
on: ["push"]

permissions: read-all
jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Vulnerability" -G true
horusec start -p . -e -n="Horusec/Platform-Vulnerability" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"
4 changes: 2 additions & 2 deletions .github/workflows/webhook-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

name: Webhook
on: ["push"]

permissions: read-all
jobs:
lint-coverage-build-security:
runs-on: ubuntu-latest
Expand All @@ -40,4 +40,4 @@ jobs:
HORUSEC_CLI_HORUSEC_API_URI: ${{ secrets.HORUSEC_CLI_HORUSEC_API_URI }}
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p . -e true -n="Horusec/Platform-Webhook" -G true
horusec start -p . -e -n="Horusec/Platform-Webhook" -G --show-vulnerabilities-types="Vulnerability, Risk Accepted"