Repository navigation
chore: update the workflow responsible for notifying of new TUF spec release - #2001
Conversation
Pull Request Test Coverage Report for Build 2299654911Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
| # Get the latest TUF specification release and open an issue (if needed) | ||
| specification-bump-check: | ||
| needs: get-supported-tuf-version | ||
| uses: theupdateframework/specification/.github/workflows/check-latest-spec-version.yml@master |
There was a problem hiding this comment.
this does bring to surface a small issue with this approach: We do not want @master in our workflows... but on the other hand, getting dependabot updates to workflows on every spec commit sounds bad (I assume that's how it's going to work).
Hmm...
There was a problem hiding this comment.
It's a possible drawback, indeed. Unfortunately, I think the only way to change that is to bundle it as a Github Action and create a separate repository just for it.
There was a problem hiding this comment.
In that sense, I'll update the PR and add permissions to the job calling the workflow in order to protect the project from any vulnerabilities coming from the specification repo 👍
cb5dd1f to
04cfad5
Compare
| version: ${{ steps.get-version.outputs.version }} | ||
| steps: | ||
| - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b | ||
| - uses: actions/setup-python@98f2ad02fd48d057ee3b4d4f66525b231c3e52b6 |
There was a problem hiding this comment.
Quoting @jku from #2089 (comment)
We should definitely set python-version to "3.x" in this workflow and everywhere else where we don't use a specific version.
…release Signed-off-by: Radoslav Dimitrov <[email protected]>
…rkflow Signed-off-by: Radoslav Dimitrov <[email protected]>
1. update action/setup-python to latest version 2. pin major version to be used to 3.x 3. upgrade pip before using it 1 and 2 were suggested in theupdateframework#2089 Signed-off-by: Lukas Puehringer <[email protected]>
04cfad5 to
7baf1d3
Compare
|
@rdimitrov: This is a friendly takeover of your PR to
(3) and (4) were suggested by @jku in #2089 Given that the upstream dependent (theupdateframework/specification#224) has been merged and permissions concerns addressed (#2001 (comment)), I suggest this PR is good to go. This PR also fixes parts of #2089. |
jku
left a comment
There was a problem hiding this comment.
Looks good I suppose? Using master as the version still does not set a great example but I agree it seems safe.
Thanks!
|
oops, pip now complains: |
Description of the changes being introduced by the pull request:
The following PR deprecates the use of the existing workflow for notifying of new TUF releases and moves to one that is hosted in the https://github.com/theupdateframework/specification/ repository.
Note: Dependent on - theupdateframework/specification#224
Please verify and check that the pull request fulfills the following
requirements: