-
Notifications
You must be signed in to change notification settings - Fork 23
feat(jobs): polish job creation wizard #207
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d0f424e
Add Playwright script for sign-in page testing
JoachimLK de193e5
Fix stalled E2E dependency install
JoachimLK 9b20abd
refactor: remove unused aiScoringChosen state and update form storage…
JoachimLK 69ace61
refactor: remove JobQuestions component to streamline job wizard UI
JoachimLK 5118b6e
feat: add ApplicationBuilderPreview and ApplicationFormBody component…
JoachimLK b269934
Refactor code structure for improved readability and maintainability
JoachimLK b128764
feat: enhance job creation wizard with validation and schema updates;…
JoachimLK 9acc0f7
chore: update nodemailer to version 9.0.1 and protobufjs to version 8…
JoachimLK 22fb5c3
Merge remote-tracking branch 'origin/main' into ui/job-wizard-polish
JoachimLK 4975411
chore: remove debug sign-in script
JoachimLK 18bdd9f
feat: enhance job question validation and update schemas; add questio…
JoachimLK 29fa699
fix: improve log handling in migration and S3 bucket readiness checks
JoachimLK 0d9c219
fix: refine rate limiting logic for production environment
JoachimLK 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
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.
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.
🧩 Analysis chain
🏁 Script executed:
cat -n .github/workflows/e2e-tests.yml | head -80Repository: reqcore-inc/reqcore
Length of output: 2807
🌐 Web query:
GitHub Actions security best practices pin actions by SHA persist-credentials false💡 Result:
To harden your GitHub Actions workflows, implementing both SHA pinning and the
persist-credentials: falsesetting are standard security best practices [1][2][3]. Pinning Actions by SHA Pinning an action to a full-length commit SHA is considered the most secure way to reference actions [1][2]. Unlike tags or branch names (e.g.,v4,main), which are mutable and can be force-updated to point to malicious code by an attacker who compromises the action's repository, a commit SHA is cryptographically immutable [1][4][5]. - Implementation: Reference the action using its 40-character commit hash:uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11[4][6]. - Governance: You can enforce this practice across your organization or repository using GitHub Actions policy settings, which allow administrators to mandate SHA pinning [1][7]. Usingpersist-credentials: falseBy default, theactions/checkoutaction stores theGITHUB_TOKENin the local.git/configfile to enable subsequent git commands [8][6]. This makes the token accessible to any step in your job, increasing the risk of credential theft if a dependency or script in your workflow is compromised [3][9][10]. - Implementation: Explicitly setpersist-credentials: falsein your checkout step if your workflow does not require git push or authenticated git operations [3][10][6]:yaml - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 with: persist-credentials: false- Use Case: If a job needs to perform git operations, evaluate whether you can isolate that task into a separate, restricted job or use a more granular authentication method [10][5]. Always follow the principle of least privilege by setting appropriatepermissionsat the workflow or job level [11][12][5].Citations:
🏁 Script executed:
grep -n "upload\|artifact" .github/workflows/e2e-tests.ymlRepository: reqcore-inc/reqcore
Length of output: 265
Pin GitHub Actions by commit SHA and disable credential persistence in checkout.
Lines 53 and 56 use mutable tags (
@v6), and line 52 does not setpersist-credentials: false. This weakens supply-chain integrity; the GITHUB_TOKEN persisted in git config is accessible to any workflow step and risks exposure through artifact uploads (lines 111, 119).Suggested hardening diff
📝 Committable suggestion
🧰 Tools
🪛 zizmor (1.25.2)
[warning] 52-53: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 53-53: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 56-56: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools