Comments (5)
@reedloden Can those be interpolated in the config to achieve the same result? I haven't tried yet, but I'm thinking of something like:
name: 'Dependency Review'
on: push
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
with:
# insert the event fields here
base-ref: ${{ github.event.before }}
head-ref: ${{ github.sha }}
from dependency-review-action.
@reedloden The reason for using the PR events is that we get the refs automatically from the PR itself. How can we fetch those values by default for other types of events?
from dependency-review-action.
@febuiles Wouldn't it be possible (for the majority of cases, at least) for you to compare github.sha
with github.event.before
? If github.event.before
is 0000000000000000000000000000000000000000
, then just treat it as initial commit and scan the full contents of the commit (versus the diff). Hopefully, I got those variables correct. The docs are not that great.
from dependency-review-action.
@reedloden Can those be interpolated in the config to achieve the same result? I haven't tried yet, but I'm thinking of something like:
name: 'Dependency Review' on: push permissions: contents: read jobs: dependency-review: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' uses: actions/checkout@v3 - name: 'Dependency Review' uses: actions/dependency-review-action@v2 with: # insert the event fields here base-ref: ${{ github.event.before }} head-ref: ${{ github.sha }}
It works :)
from dependency-review-action.
Great to hear, marking as closed!
from dependency-review-action.
Related Issues (20)
- Sometimes all dependencies are considered new HOT 5
- Unknown License but license available via github API HOT 2
- Package Deny List Ignores Version HOT 3
- Some Settings In External Configuration Overridden By Inline Defaults HOT 5
- Reachability - Add a flag to only block only on reachable dependencies.
- Invalid SPDX License should (as opt-in?) be counted as warning HOT 2
- Add Scopes to Scanned Manifest Files inventory
- Blocking issues (should block but does not) HOT 5
- Add list of resolved vulnerabilities to the PR Comment / Logs
- Invalid URL for OpenSSF Scorecard Package HOT 3
- Create a PR check for default values in action.yml
- Bug: Some repos get error "fetch failed" when fetching v4.2.3 HOT 3
- Action fails to decorate PR when text is too long HOT 2
- Deny Packages Icon should be Red X (not a yellow warning) HOT 3
- Feature Request: Block on unknown licenses HOT 1
- `warn_only` Does Not Apply When Using a Deny List HOT 1
- error "fetch failed" with v4.2.5 HOT 3
- Scorecard table URLs include duplicate https:// HOT 3
- MIT is an invalid SPDX license identifier? HOT 2
- Question: Is this action limited to revisions on the _default_ branch only? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dependency-review-action.