Skip to content

Commit a3fbd61

Browse files
committed
refactor: flatten action and README asset paths
1 parent c06398d commit a3fbd61

16 files changed

Lines changed: 44 additions & 47 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ jobs:
428428

429429
- name: Restore pinned SEA download cache
430430
id: sea-download-cache
431-
uses: ./.github/actions/repo/cache-downloads
431+
uses: ./.github/actions/cache-downloads
432432
with:
433433
mode: restore
434434
path: ~/.cache/socket-sea/downloads/v1/blobs
@@ -472,7 +472,7 @@ jobs:
472472

473473
- name: Save pinned SEA download cache
474474
if: success() && steps.sea-download-cache.outputs.cache-hit != 'true' && github.repository == 'SocketDev/socket-cli' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (github.ref == 'refs/heads/v1.x' || github.ref == 'refs/heads/feat/v1x-node27-sea-vfs-socket' || startsWith(github.ref, 'refs/heads/test/native-terminal-validation-'))
475-
uses: ./.github/actions/repo/cache-downloads
475+
uses: ./.github/actions/cache-downloads
476476
with:
477477
mode: save
478478
path: ~/.cache/socket-sea/downloads/v1/blobs

‎.github/workflows/publish-npm.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ jobs:
327327
- name: Upload verified tarballs
328328
if: steps.release-meta.outputs.version != ''
329329
id: upload
330-
uses: ./.github/actions/repo/upload-artifact
330+
uses: ./.github/actions/upload-artifact
331331
with:
332332
name: npm-release-tarballs-${{ github.run_attempt }}
333333
path: ${{ runner.temp }}/dist
@@ -345,7 +345,7 @@ jobs:
345345
- name: Upload verified launcher
346346
if: steps.native-meta.outputs.version != ''
347347
id: upload-native
348-
uses: ./.github/actions/repo/upload-artifact
348+
uses: ./.github/actions/upload-artifact
349349
with:
350350
name: npm-native-launcher-${{ github.run_attempt }}
351351
path: ${{ runner.temp }}/launcher
@@ -434,7 +434,7 @@ jobs:
434434
435435
- name: Upload tested platform package
436436
id: upload
437-
uses: ./.github/actions/repo/upload-artifact
437+
uses: ./.github/actions/upload-artifact
438438
with:
439439
name: native-${{ matrix.target }}-${{ github.run_attempt }}
440440
path: ${{ runner.temp }}/platform
@@ -713,7 +713,7 @@ jobs:
713713
- name: Upload the prepared release patch
714714
if: ${{ inputs.dry-run == false }}
715715
id: patch
716-
uses: ./.github/actions/repo/upload-artifact
716+
uses: ./.github/actions/upload-artifact
717717
with:
718718
name: release-bump-${{ github.run_attempt }}
719719
path: ${{ runner.temp }}/release-bump

‎.gitignore‎

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
!/.vscode/
1111
!/.github/
1212
!/.github/actions/
13-
!/.github/actions/repo/
14-
!/.github/actions/repo/cache-downloads/
15-
!/.github/actions/repo/upload-artifact/
13+
!/.github/actions/cache-downloads/
14+
!/.github/actions/upload-artifact/
1615
!/.github/scripts/
1716
!/.github/workflows/
18-
!/.github/actions/repo/upload-artifact/action.yml
19-
!/.github/actions/repo/upload-artifact/index.mjs
20-
!/.github/actions/repo/cache-downloads/action.yml
21-
!/.github/actions/repo/cache-downloads/index.mts
17+
!/.github/actions/upload-artifact/action.yml
18+
!/.github/actions/upload-artifact/index.mjs
19+
!/.github/actions/cache-downloads/action.yml
20+
!/.github/actions/cache-downloads/index.mts
2221
!/.github/scripts/download-release-artifacts.mts
2322
!/.github/scripts/pin-readme-assets.mjs
2423
!/.github/scripts/smoke-test-tarball.mts
@@ -28,7 +27,6 @@
2827
!/.github/workflows/publish-npm.yml
2928
!/.github/workflows/release-github.yml
3029
!/assets/
31-
!/assets/fleet/
3230
!/bin/
3331
!/docs/
3432
!/docs/commands/
@@ -137,9 +135,8 @@
137135
!/test/unit/
138136
!/test/unit/github/
139137
!/test/unit/github/actions/
140-
!/test/unit/github/actions/repo/
141-
!/test/unit/github/actions/repo/cache-downloads/
142-
!/test/unit/github/actions/repo/cache-downloads/index.test.mts
138+
!/test/unit/github/actions/cache-downloads/
139+
!/test/unit/github/actions/cache-downloads/index.test.mts
143140
!/test/unit/constants.test.mts
144141
!/test/unit/sea/
145142
!/test/unit/sea/build/
@@ -272,10 +269,10 @@
272269
!/DISCLOSURE
273270
!/LICENSE
274271
!/README.md
275-
!/assets/fleet/badge-follow-bluesky.svg
276-
!/assets/fleet/badge-follow-x.svg
277-
!/assets/fleet/socket-combomark-dark.svg
278-
!/assets/fleet/socket-combomark-light.svg
272+
!/assets/badge-follow-bluesky.svg
273+
!/assets/badge-follow-x.svg
274+
!/assets/socket-combomark-dark.svg
275+
!/assets/socket-combomark-light.svg
279276
!/bin/cli.js
280277
!/bin/npm-cli.js
281278
!/bin/npx-cli.js

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<!-- coverage-badge:start -->
55
[![Coverage](https://img.shields.io/badge/coverage-95%25-brightgreen)](https://github.com/SocketDev/socket-cli/actions)
66
<!-- coverage-badge:end -->
7-
[![Follow @SocketSecurity](assets/fleet/badge-follow-x.svg)](https://twitter.com/SocketSecurity)
8-
[![Follow @socket.dev on Bluesky](assets/fleet/badge-follow-bluesky.svg)](https://bsky.app/profile/socket.dev)
7+
[![Follow @SocketSecurity](assets/badge-follow-x.svg)](https://twitter.com/SocketSecurity)
8+
[![Follow @socket.dev on Bluesky](assets/badge-follow-bluesky.svg)](https://bsky.app/profile/socket.dev)
99

1010
CLI for [Socket.dev](https://socket.dev) — scan dependencies, audit packages, apply security patches, and gate installs from your terminal or CI. This is the 1.x line of the published `socket` package on npm.
1111

@@ -212,8 +212,8 @@ MIT
212212
<br/>
213213
<div align="center">
214214
<picture>
215-
<source media="(prefers-color-scheme: dark)" srcset="assets/fleet/socket-combomark-dark.svg">
216-
<source media="(prefers-color-scheme: light)" srcset="assets/fleet/socket-combomark-light.svg">
217-
<img width="324" height="104" alt="Socket" src="assets/fleet/socket-combomark-light.svg">
215+
<source media="(prefers-color-scheme: dark)" srcset="assets/socket-combomark-dark.svg">
216+
<source media="(prefers-color-scheme: light)" srcset="assets/socket-combomark-light.svg">
217+
<img width="324" height="104" alt="Socket" src="assets/socket-combomark-light.svg">
218218
</picture>
219219
</div>

0 commit comments

Comments
 (0)