Skip to content

Commit

Permalink
feat: generic login for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 11, 2022
1 parent e59a5fb commit 6737272
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
65 changes: 65 additions & 0 deletions .github/workflows/self-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: self
on: [ push ]

jobs:

Analysis:
runs-on: ubuntu-latest

permissions:
actions: read
contents: read
security-events: write

steps:

# pre-job
- name: Setup | Cloning repository
uses: actions/checkout@v3
with:
fetch-depth: '0'

#job
- name: Run GitLeaks
uses: docker://opendevsecops/gitleaks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --repo=https://github.com/${{github.repository}}

- name: Initialize CodeQL
uses: github/codeql-action/init@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: Upload sarif file
uses: github/codeql-action/upload-sarif@v2
# with:
# category: ${{ env.GITHUB_SHA }}


Release:
runs-on: ubuntu-latest
needs: Analysis

steps:

- name: Cloning repository
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm i -g -D \
semantic-release \
@semantic-release/git \
@semantic-release/github \
@semantic-release/changelog \
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator
semantic-release

0 comments on commit 6737272

Please sign in to comment.