mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
Pin actions/cache to v2.1.3
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
parent
a350e5889b
commit
bf2d5ed87e
3 changed files with 16 additions and 25 deletions
16
.github/workflows/acceptance-test.yaml
vendored
16
.github/workflows/acceptance-test.yaml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: 'Acceptance'
|
name: "Acceptance"
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
|
@ -16,7 +16,6 @@ jobs:
|
||||||
Build-Snapshot-Artifacts:
|
Build-Snapshot-Artifacts:
|
||||||
runs-on: macos-latest # We're creating these snapshot builds on macOS to be consistent with our release workflow's build process, which also takes place on macOS (due to code signing requirements).
|
runs-on: macos-latest # We're creating these snapshot builds on macOS to be consistent with our release workflow's build process, which also takes place on macOS (due to code signing requirements).
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
@ -25,7 +24,7 @@ jobs:
|
||||||
|
|
||||||
- name: Restore bootstrap cache
|
- name: Restore bootstrap cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/go/pkg/mod
|
~/go/pkg/mod
|
||||||
|
@ -75,11 +74,10 @@ jobs:
|
||||||
|
|
||||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||||
Acceptance-Linux:
|
Acceptance-Linux:
|
||||||
needs: [ Build-Snapshot-Artifacts ]
|
needs: [Build-Snapshot-Artifacts]
|
||||||
# come Nov 30 2020 ubuntu-latest will be ubuntu-20.04, until then it needs to be explicitly referenced due to python 3.7 specific features being used
|
# come Nov 30 2020 ubuntu-latest will be ubuntu-20.04, until then it needs to be explicitly referenced due to python 3.7 specific features being used
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
@ -101,10 +99,9 @@ jobs:
|
||||||
|
|
||||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||||
Acceptance-Mac:
|
Acceptance-Mac:
|
||||||
needs: [ Build-Snapshot-Artifacts ]
|
needs: [Build-Snapshot-Artifacts]
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
@ -126,11 +123,10 @@ jobs:
|
||||||
|
|
||||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||||
Inline-Compare:
|
Inline-Compare:
|
||||||
needs: [ Build-Snapshot-Artifacts ]
|
needs: [Build-Snapshot-Artifacts]
|
||||||
# come Nov 30 2020 ubuntu-latest will be ubuntu-20.04, until then it needs to be explicitly referenced due to python 3.7 specific features being used
|
# come Nov 30 2020 ubuntu-latest will be ubuntu-20.04, until then it needs to be explicitly referenced due to python 3.7 specific features being used
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Fingerprint inline-compare sources
|
- name: Fingerprint inline-compare sources
|
||||||
|
@ -138,7 +134,7 @@ jobs:
|
||||||
|
|
||||||
- name: Restore inline reports cache
|
- name: Restore inline reports cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/test/inline-compare/inline-reports
|
path: ${{ github.workspace }}/test/inline-compare/inline-reports
|
||||||
key: inline-reports-${{ hashFiles('**/inline-compare.fingerprint') }}
|
key: inline-reports-${{ hashFiles('**/inline-compare.fingerprint') }}
|
||||||
|
|
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
|
@ -1,12 +1,12 @@
|
||||||
name: 'Release'
|
name: "Release"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# take no actions on push to any branch...
|
# take no actions on push to any branch...
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- '**'
|
- "**"
|
||||||
# ... only act on release tags
|
# ... only act on release tags
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- "v*"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.14.x"
|
GO_VERSION: "1.14.x"
|
||||||
|
@ -15,7 +15,6 @@ jobs:
|
||||||
wait-for-checks:
|
wait-for-checks:
|
||||||
runs-on: ubuntu-latest # This OS choice is arbitrary. None of the steps in this job are specific to either Linux or macOS.
|
runs-on: ubuntu-latest # This OS choice is arbitrary. None of the steps in this job are specific to either Linux or macOS.
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# we don't want to release commits that have been pushed and tagged, but not necessarily merged onto main
|
# we don't want to release commits that have been pushed and tagged, but not necessarily merged onto main
|
||||||
|
@ -81,10 +80,9 @@ jobs:
|
||||||
false
|
false
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [ wait-for-checks ]
|
needs: [wait-for-checks]
|
||||||
runs-on: macos-latest # Due to our code signing process, it's vital that we run our release steps on macOS.
|
runs-on: macos-latest # Due to our code signing process, it's vital that we run our release steps on macOS.
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
@ -96,7 +94,7 @@ jobs:
|
||||||
# We are expecting this cache to have been created during the "Build-Snapshot-Artifacts" job in the "Acceptance" workflow.
|
# We are expecting this cache to have been created during the "Build-Snapshot-Artifacts" job in the "Acceptance" workflow.
|
||||||
- name: Restore bootstrap cache
|
- name: Restore bootstrap cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/go/pkg/mod
|
~/go/pkg/mod
|
||||||
|
|
13
.github/workflows/static-unit-integration.yaml
vendored
13
.github/workflows/static-unit-integration.yaml
vendored
|
@ -1,10 +1,9 @@
|
||||||
name: 'Static Analysis + Unit + Integration'
|
name: "Static Analysis + Unit + Integration"
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Static-Analysis:
|
Static-Analysis:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -12,7 +11,6 @@ jobs:
|
||||||
platform: [ubuntu-latest]
|
platform: [ubuntu-latest]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
@ -21,7 +19,7 @@ jobs:
|
||||||
|
|
||||||
- name: Restore bootstrap cache
|
- name: Restore bootstrap cache
|
||||||
id: bootstrap-cache
|
id: bootstrap-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/go/pkg/mod
|
~/go/pkg/mod
|
||||||
|
@ -49,7 +47,6 @@ jobs:
|
||||||
platform: [ubuntu-latest]
|
platform: [ubuntu-latest]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
@ -58,7 +55,7 @@ jobs:
|
||||||
|
|
||||||
- name: Restore bootstrap cache
|
- name: Restore bootstrap cache
|
||||||
id: bootstrap-cache
|
id: bootstrap-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/go/pkg/mod
|
~/go/pkg/mod
|
||||||
|
@ -80,7 +77,7 @@ jobs:
|
||||||
|
|
||||||
- name: Restore Java test-fixture cache
|
- name: Restore Java test-fixture cache
|
||||||
id: unit-java-cache
|
id: unit-java-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: syft/cataloger/java/test-fixtures/java-builds/packages
|
path: syft/cataloger/java/test-fixtures/java-builds/packages
|
||||||
key: ${{ runner.os }}-unit-java-cache-${{ hashFiles( 'syft/cataloger/java/test-fixtures/java-builds/packages.fingerprint' ) }}
|
key: ${{ runner.os }}-unit-java-cache-${{ hashFiles( 'syft/cataloger/java/test-fixtures/java-builds/packages.fingerprint' ) }}
|
||||||
|
@ -95,7 +92,7 @@ jobs:
|
||||||
run: make integration-fingerprint
|
run: make integration-fingerprint
|
||||||
|
|
||||||
- name: Restore integration test cache
|
- name: Restore integration test cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/integration/test-fixtures/cache
|
path: ${{ github.workspace }}/integration/test-fixtures/cache
|
||||||
key: ${{ runner.os }}-integration-test-cache-${{ hashFiles('integration/test-fixtures/cache.fingerprint') }}
|
key: ${{ runner.os }}-integration-test-cache-${{ hashFiles('integration/test-fixtures/cache.fingerprint') }}
|
||||||
|
|
Loading…
Reference in a new issue