Skip to content

Coverity

Coverity #17

Workflow file for this run

name: Coverity
on:
workflow_dispatch:
inputs:
build_version:
description: "Version of GPT-NeoX being submitted for scan"
required: false
default: "GPT-NeoX build version"
build_description:
description: "Description of the current build"
required: false
default: "Current build of GPT-NeoX"
jobs:
coverity:
runs-on: ubuntu-latest
env:
COV_USER: ${{ secrets.COV_USER }}
COVERITY_PROJECT: ${{ secrets.COVERITY_PROJECT }}
COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
path: gpt-neox
- name: Install utils
run: |
sudo apt update -y && sudo apt upgrade -y
sudo apt install curl jq wget -y
- name: Coverity Download
run: |
wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_TOKEN&project=EleutherAI%2Fgpt-neox" -O coverity_tool.tgz --no-verbose
mkdir $GITHUB_WORKSPACE/coverity && tar xvf coverity_tool.tgz -C $GITHUB_WORKSPACE/coverity --strip-components=1
$GITHUB_WORKSPACE/coverity/bin/cov-configure --python
$GITHUB_WORKSPACE/coverity/bin/cov-configure --gcc
- name: Coverity Scan and Upload
run: |
set -x
pushd $GITHUB_WORKSPACE
cd $GITHUB_WORKSPACE/gpt-neox
$GITHUB_WORKSPACE/coverity/bin/cov-build --dir $GITHUB_WORKSPACE/cov-int --no-command --fs-capture-search ./
popd
tar caf build-results.bz2 cov-int
curl --form token=$COVERITY_TOKEN \
--form email=$COV_USER \
--form [email protected] \
--form version="Version" \
--form description="Build" \
https://scan.coverity.com/builds?project=EleutherAI%2Fgpt-neox
- name: Upload Scan Build as Artifact
uses: actions/upload-artifact@v3
with:
name: coverity-build-${{ GITHUB_SHA }}

Check failure on line 59 in .github/workflows/coverity_scan.yml

View workflow run for this annotation

GitHub Actions / Coverity

Invalid workflow file

The workflow is not valid. .github/workflows/coverity_scan.yml (Line: 59, Col: 15): Unrecognized named-value: 'GITHUB_SHA'. Located at position 1 within expression: GITHUB_SHA
path: build-results.bz2