-
-
Notifications
You must be signed in to change notification settings - Fork 315
feat: Authoritative plugin fields #1435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jokob-sk
wants to merge
15
commits into
main
Choose a base branch
from
next_release
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,185
−267
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
dfd2cf9
Merge pull request #1321 from jokob-sk/main
jokob-sk 1e289e9
Merge pull request #1432 from netalertx/main
jokob-sk 3b20353
ALL:Authoritative plugin fields
jokob-sk 22695a6
TEST: small test fixes
jokob-sk 3ee21ac
review fixes
jokob-sk 478b018
feat: Enhance plugin configurations and improve MAC normalization
jokob-sk 97e684d
change
jokob-sk 54d01f0
feat: Enhance authoritative field handling with new locking mechanism…
jokob-sk 9f1d04b
feat: Update plugin configurations to include additional SET_EMPTY o…
jokob-sk fcbe4ae
feat: Implement forced device status updates and enhance related tests
jokob-sk 3109b5d
feat: Update plugin descriptions for authoritative column handling an…
jokob-sk c843ea5
feat: Add GitHub Actions workflow for docker-unsafe builds with dynam…
jokob-sk 422a048
feat: authoritative plugin fields
jokob-sk 49e689f
Refactor authoritative field handling and enhance device update logic
jokob-sk cafa36f
feat: Enhance readonly input styles and improve device data handling
jokob-sk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| name: docker-unsafe | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - next_release | ||
| pull_request: | ||
| branches: | ||
| - next_release | ||
|
|
||
| jobs: | ||
| docker_dev_unsafe: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 90 | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| if: > | ||
| !contains(github.event.head_commit.message, 'PUSHPROD') && | ||
| ( | ||
| github.repository == 'jokob-sk/NetAlertX' || | ||
| github.repository == 'netalertx/NetAlertX' | ||
| ) | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| # --- Generate timestamped dev version | ||
| - name: Generate timestamp version | ||
| id: timestamp | ||
| run: | | ||
| ts=$(date -u +'%Y%m%d-%H%M%S') | ||
| echo "version=dev-${ts}" >> $GITHUB_OUTPUT | ||
| echo "Generated version: dev-${ts}" | ||
| - name: Set up dynamic build ARGs | ||
| id: getargs | ||
| run: echo "version=$(cat ./stable/VERSION)" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Get release version | ||
| id: get_version | ||
| run: echo "version=Dev" >> $GITHUB_OUTPUT | ||
|
|
||
| # --- debug output | ||
| - name: Debug version | ||
| run: | | ||
| echo "GITHUB_REF: $GITHUB_REF" | ||
| echo "Version: '${{ steps.get_version.outputs.version }}'" | ||
| # --- Write the timestamped version to .VERSION file | ||
| - name: Create .VERSION file | ||
| run: echo "${{ steps.timestamp.outputs.version }}" > .VERSION | ||
|
|
||
| - name: Docker meta | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: | | ||
| ghcr.io/netalertx/netalertx-dev-unsafe | ||
| jokobsk/netalertx-dev-unsafe | ||
| tags: | | ||
| type=raw,value=unsafe | ||
| type=raw,value=${{ steps.timestamp.outputs.version }} | ||
| type=ref,event=branch | ||
| type=ref,event=pr | ||
| type=sha | ||
| - name: Login GHCR (netalertx org) | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Login GHCR (jokob-sk legacy) | ||
| if: github.event_name != 'pull_request' | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: jokob-sk | ||
| password: ${{ secrets.GHCR_JOKOBSK_PAT }} | ||
|
|
||
| - name: Log in to DockerHub | ||
| if: github.event_name != 'pull_request' | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 | ||
| push: ${{ github.event_name != 'pull_request' }} | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: | | ||
| org.opencontainers.image.title=NetAlertX Dev Unsafe | ||
| org.opencontainers.image.description=EXPERIMENTAL BUILD – NOT SUPPORTED – DATA LOSS POSSIBLE | ||
| org.opencontainers.image.version=${{ steps.timestamp.outputs.version }} | ||
| netalertx.stability=unsafe | ||
| netalertx.support=none | ||
| netalertx.data_risk=high | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
head_commit.messagemay be null for pull request events.The
github.event.head_commit.messageis not populated forpull_requestevents, which could cause unexpected behavior. Consider using a more robust check:Suggested improvement
🤖 Prompt for AI Agents