11 update nuget deps with known security issues #162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: adoscope-nuget-build | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
workflow_dispatch: | |
jobs: | |
versionupdate: | |
name: Update Version - Revision | |
runs-on: ubuntu-latest | |
steps: | |
- uses: action-pack/set-secret@v1 | |
with: | |
name: 'REVISION' | |
value: $((${{ secrets.REVISION }}+1)) | |
token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
versionprepare: | |
name: Version Prepare | |
runs-on: windows-latest | |
needs: [versionupdate] | |
outputs: | |
buildVersion: ${{ steps.set_version.outputs.buildVersion }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setting up build version | |
id: set_version | |
run: | | |
$major = ${{ vars.MAJOR }} | |
$minor = ${{ vars.MINOR }} | |
$revision = ${{ secrets.REVISION }} | |
$commitHash = "${{ github.sha }}".Substring(0,7) # Short SHA | |
$buildVersion = "${major}.${minor}.${revision}-$commitHash-alpha" | |
echo "::set-output name=buildVersion::$buildVersion" | |
echo "BuildVersion=$buildVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | |
echo "BuildVersion=$buildVersion" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append | |
buildpackage: | |
name: Build | |
needs: [versionprepare] | |
uses: gentoorax/Promethix.Framework.Ado/.github/workflows/adoscope-reusable-build.yaml@main | |
with: | |
buildVersion: ${{ needs.versionprepare.outputs.buildVersion }} | |
dotnetVersion: '8.0.x' | |
secrets: | |
repoToken: ${{ secrets.REPO_ACCESS_TOKEN }} |