Skip to content

Add dependencias fijas #10

Add dependencias fijas

Add dependencias fijas #10

Workflow file for this run

name: Code Report
on:
push:
branches: [development, main]
pull_request:
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install GitOps CLI
run: npm install --global @getgitops/cli@1.2.1
- name: Run Code Report scan
env:
API_URL: https://cloud.getgitops.com/api
API_KEY: ${{ secrets.GITOPS_API_KEY }}
run: >-
gops creport scan
--api-url "$API_URL"
--api-key "$API_KEY"
--service gitops-cli
--project gitops
--git-branch "${GITHUB_REF_NAME}"
--git-repo-url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
--git-author "${GITHUB_ACTOR}"
--git-version "${GITHUB_REF}"
--git-commit "${GITHUB_SHA}"
--tags github-actions ci
scan-action:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: getgitops/cli-github-action@9051a668ce26ef933b26b5b9a07cfca77f3f7f3c # v1.0.0
with:
command: creport scan
version: 1.2.1
api-key: ${{ secrets.GITOPS_API_KEY }}
service: gitops-cli
project: gitops
tags: github-actions,ci,marketplace