Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/amplify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .github/workflows/amplify.yml
---
name: Amplify Security
on:
pull_request: {}
workflow_dispatch: {}
push:
branches: ["master", "main"]

permissions:
contents: read
id-token: write

jobs:
amplify-security-scan:
name: Amplify Security Scan
runs-on: ubuntu-latest
if: (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Amplify Runner
uses: amplify-security/runner-action@develop

Check warning on line 23 in .github/workflows/amplify.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/amplify.yml#L23

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
Comment on lines +22 to +23

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Pin the external GitHub Action reference to an immutable tag or commit SHA to eliminate the risk of executing unintended code changes from the mutable develop branch. [security]